Commit a9703034 authored by Denis Bilenko's avatar Denis Bilenko

socket: fix typo causing NameError on windows

parent b9adb3ab
......@@ -563,14 +563,14 @@ if hasattr(_socket, 'socketpair'):
one, two = _socket.socketpair(*args)
return socket(_sock=one), socket(_sock=two)
else:
__all__.remove('socketpair')
__implements__.remove('socketpair')
if hasattr(_socket, 'fromfd'):
def fromfd(*args):
return socket(_sock=_socket.fromfd(*args))
else:
__all__.remove('fromfd')
__implements__.remove('fromfd')
def bind_and_listen(descriptor, address=('', 0), backlog=50, reuse_addr=True):
......
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