diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/socket.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/socket.py b/Lib/socket.py index c351a91..7bb00a6 100644 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -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 |