From: Tim Peters Date: Wed, 31 Jul 2002 17:48:02 +0000 (+0000) Subject: Restore a full arglist to the socket wrapper, so it supports keyword X-Git-Tag: v2.3c1~4808 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6be147541af1768a9273fdbaecd39bc88c1e23ae;p=python 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 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: