Commit 6be14754 authored by Tim Peters's avatar Tim Peters

Restore a full arglist to the socket wrapper, so it supports keyword

arguments correctly too.
parent 8c3fb874
......@@ -62,8 +62,8 @@ if (sys.platform.lower().startswith("win")
_realsocketcall = _socket.socket
def socket(*args):
return _socketobject(_realsocketcall(*args))
def socket(family=AF_INET, type=SOCK_STREAM, proto=0):
return _socketobject(_realsocketcall(family, type, proto))
socket.__doc__ = _realsocketcall.__doc__
if SSL_EXISTS:
......
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