diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-07-31 17:32:11 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-07-31 17:32:11 (GMT) |
commit | 8c3fb874ae07d270075b1d9f935d4714ef3c50fd (patch) | |
tree | 8c9be9b8cf86777ecd48ad3a2106052db634f5bf /Lib/socket.py | |
parent | 108b7918b00e4823f9eb3976ec34f46ba7d3db45 (diff) | |
download | cpython-8c3fb874ae07d270075b1d9f935d4714ef3c50fd.zip cpython-8c3fb874ae07d270075b1d9f935d4714ef3c50fd.tar.gz cpython-8c3fb874ae07d270075b1d9f935d4714ef3c50fd.tar.bz2 |
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).
Diffstat (limited to 'Lib/socket.py')
-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 |