From: Tim Peters Date: Wed, 31 Jul 2002 17:32:11 +0000 (+0000) Subject: For platforms (like Windows) that wrap _socket.socket: X-Git-Tag: v2.3c1~4809 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c3fb874ae07d270075b1d9f935d4714ef3c50fd;p=python 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). --- diff --git a/Lib/socket.py b/Lib/socket.py index c351a91cc2..7bb00a6a79 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