Commit ef3657dd authored by Denis Bilenko's avatar Denis Bilenko

improve __repr__ of Timeout

parent 1c1db49c
......@@ -293,10 +293,7 @@ class Timeout(object):
self.timeout.cancel()
def __repr__(self):
if self.timeout is not None:
return repr(self.timeout)
else:
return '<fake timeout>'
return '<%s at %s timeout=%s exception=%s>' % (type(self).__name__, hex(id(self)), self.timeout, self.exception)
def __enter__(self):
return self
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment