commit | 6be147541af1768a9273fdbaecd39bc88c1e23ae | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Wed Jul 31 17:48:02 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Wed Jul 31 17:48:02 2002 +0000 |
tree | 1f86ca05758b7b21677a09f19b20d548072489a1 | |
parent | 8c3fb874ae07d270075b1d9f935d4714ef3c50fd [diff] |
Restore a full arglist to the socket wrapper, so it supports keyword arguments correctly too.
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 @@ _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: