Commit 67965bcb authored by Tim Peters's avatar Tim Peters

For platforms (like Windows) that wrap _socket.socket:

+ Don't change the arglist requirements.
+ Give the wrapper the same docstring as _socket.socket (it didn't
  have any docstring).
parent 1ca93f59
......@@ -62,8 +62,9 @@ if (sys.platform.lower().startswith("win")
_realsocketcall = _socket.socket
def socket(family, type, proto=0):
return _socketobject(_realsocketcall(family, type, proto))
def socket(*args):
return _socketobject(_realsocketcall(*args))
socket.__doc__ = _realsocketcall.__doc__
if SSL_EXISTS:
_realsslcall = _ssl.ssl
......
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