Bug 1410799 - Fix NameError for cls_name r=jgraham
authorAndreas Tolfsen <ato@sny.no>
Wed, 01 Nov 2017 17:59:26 +0000
changeset 443113 b4b544f4aaa4d0527e43f58cbc90c68822816f27
parent 443112 aec42777a66d07d430f3c7aef65e53e065e5b5a4
child 443114 f99477c499ab89d81cad2a76f2586f97a51ef0a9
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1410799
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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