Commit 4a966503 authored by Denis Bilenko's avatar Denis Bilenko

GreenSocket: add __repr__ which includes fileno

parent 08843170
......@@ -217,6 +217,9 @@ class GreenSocket(object):
# act non-blocking
self.act_non_blocking = False
def __repr__(self):
return '<%s at %s fileno=%s>' % (type(self).__name__, hex(id(self)), self.fileno())
@property
def family(self):
return self.fd.family
......
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