diff --git a/Lib/socket.py b/Lib/socket.py index 7bb00a6a798..515d4775044 100644 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -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: