diff options
author | Brian May <brian@linuxpenguins.xyz> | 2018-08-20 17:25:49 +1000 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2019-02-18 17:31:57 +1100 |
commit | da522d835635036b1b6ee9650efb68610256916a (patch) | |
tree | c82926bbd6ac7a33cf83e00843accebd97a09e1c /lib/python/web_support.py | |
parent | 3d296da5ed80bbe0b17c6ece33a454895b20c846 (diff) |
Replace `abc` with repr(abc)
Diffstat (limited to 'lib/python/web_support.py')
-rw-r--r-- | lib/python/web_support.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/web_support.py b/lib/python/web_support.py index c320ff033c..5752f34b5f 100644 --- a/lib/python/web_support.py +++ b/lib/python/web_support.py @@ -139,7 +139,7 @@ class URL: def __str__(self): return self.__url def __repr__(self): - return "URL(%s)" % `self.__url` + return "URL(%s)" % repr(self.__url) class URLFactory: """Creates URL objects. @@ -347,7 +347,7 @@ class Tag(HTMLBase): write("<%s%s/>" % (self.__name, self.__attribs)) def __repr__(self): - return "<websupport.Tag instance, name=%s>" % `self.__name` + return "<websupport.Tag instance, name=%s>" % repr(self.__name) def toString(self): r = cStringIO.StringIO() @@ -768,7 +768,7 @@ class WebService(Service, WebServiceBase): self.pre_dispatch() url = URLFactory(server_name, script_name, path, params) r = method(remaining, params, url) - assert isinstance(r, Result), `r` + assert isinstance(r, Result), repr(r) r.flatten(result.write) class ThreadingHTTPServer(SocketServer.ThreadingMixIn, @@ -801,7 +801,7 @@ class WebServiceHTTP(WebServiceBase): try: service_self.pre_dispatch() r = method(remaining, params, url) - assert isinstance(r, Result), `r` + assert isinstance(r, Result), repr(r) result = r.flatten_later() finally: service_self.lock.release() |