summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-31 17:48:02 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-07-31 17:48:02 (GMT)
commit6be147541af1768a9273fdbaecd39bc88c1e23ae (patch)
tree1f86ca05758b7b21677a09f19b20d548072489a1 /Lib/socket.py
parent8c3fb874ae07d270075b1d9f935d4714ef3c50fd (diff)
downloadcpython-6be147541af1768a9273fdbaecd39bc88c1e23ae.zip
cpython-6be147541af1768a9273fdbaecd39bc88c1e23ae.tar.gz
cpython-6be147541af1768a9273fdbaecd39bc88c1e23ae.tar.bz2
Restore a full arglist to the socket wrapper, so it supports keyword
arguments correctly too.
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index 7bb00a6..515d477 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: