mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Restore a full arglist to the socket wrapper, so it supports keyword
arguments correctly too.
This commit is contained in:
parent
8c3fb874ae
commit
6be147541a
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue