Arg, stupid inheritance

This commit is contained in:
Ryan Williams
2009-12-05 00:51:15 -08:00
parent c18067387c
commit 1a5ce57587

View File

@@ -167,7 +167,10 @@ class GreenSocket(object):
fd = family_or_realsock
assert not args, args
assert not kwargs, kwargs
orig_timeout = fd.gettimeout()
try:
orig_timeout = fd.gettimeout()
except AttributeError:
orig_timeout = None
set_nonblocking(fd)
self.fd = fd