summaryrefslogtreecommitdiff
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-31 17:48:02 +0000
committerTim Peters <tim.peters@gmail.com>2002-07-31 17:48:02 +0000
commit9bd1742c6c3847cf2688b91bab85feea3dfd4e66 (patch)
tree7e7b56f2f0d3f5dd0f7e661c684344b336ce9882 /Lib/socket.py
parent67965bcbcdb686bdcdc1afcb94620cc634d01f6f (diff)
downloadcpython-9bd1742c6c3847cf2688b91bab85feea3dfd4e66.tar.gz
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 7bb00a6a79..515d477504 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: