diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-07-31 17:48:02 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-07-31 17:48:02 (GMT) |
commit | 6be147541af1768a9273fdbaecd39bc88c1e23ae (patch) | |
tree | 1f86ca05758b7b21677a09f19b20d548072489a1 /Lib/socket.py | |
parent | 8c3fb874ae07d270075b1d9f935d4714ef3c50fd (diff) | |
download | cpython-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.py | 4 |
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: |