summaryrefslogtreecommitdiff
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-31 17:32:11 +0000
committerTim Peters <tim.peters@gmail.com>2002-07-31 17:32:11 +0000
commit67965bcbcdb686bdcdc1afcb94620cc634d01f6f (patch)
treea68c956ad58960933b7b2f56093669aa88053e78 /Lib/socket.py
parent1ca93f5994faa02847ac48ac8974f5e22841cb78 (diff)
downloadcpython-67965bcbcdb686bdcdc1afcb94620cc634d01f6f.tar.gz
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.py5
1 files changed, 3 insertions, 2 deletions
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