Commit 62ce1ddd authored by Denis Bilenko's avatar Denis Bilenko

gevent.socket.socket: add _sock property as an alias for self.fd

- web.py only likes sockets that have _sock property
parent 01a2001c
......@@ -194,6 +194,10 @@ class socket(object):
result += ' timeout=' + str(self.timeout)
return result
@property
def _sock(self):
return self.fd
def __getattr__(self, item):
return getattr(self.fd, item)
......
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