Bug 1410799 - Fix NameError for cls_name r=jgraham draft
authorAndreas Tolfsen <ato@sny.no>
Wed, 01 Nov 2017 17:59:26 +0000
changeset 692107 1ac55eb8695ec3cecd4b0ee35c84e0938c593bbe
parent 692089 40a14ca1cf04499f398e4cb8ba359b39eae4e216
child 692108 407fa8e6335f07eac0ac24bcad0711be4500e0be
push id87400
push userbmo:ato@sny.no
push dateThu, 02 Nov 2017 15:42:41 +0000
reviewersjgraham
bugs1410799
milestone58.0a1
Bug 1410799 - Fix NameError for cls_name r=jgraham MozReview-Commit-ID: 7xf1Xu0BA5u
testing/web-platform/tests/tools/webdriver/webdriver/transport.py
--- a/testing/web-platform/tests/tools/webdriver/webdriver/transport.py
+++ b/testing/web-platform/tests/tools/webdriver/webdriver/transport.py
@@ -14,16 +14,17 @@ class Response(object):
     body has been read and parsed as appropriate.
     """
 
     def __init__(self, status, body):
         self.status = status
         self.body = body
 
     def __repr__(self):
+        cls_name = self.__class__.__name__
         if self.error:
             return "<%s status=%s error=%s>" % (cls_name, self.status, repr(self.error))
         return "<% status=%s body=%s>" % (cls_name, self.status, json.dumps(self.body))
 
     def __str__(self):
         return json.dumps(self.body, indent=2)
 
     @property