mirror of
https://github.com/python/cpython.git
synced 2025-12-11 19:40:17 +00:00
For platforms (like Windows) that wrap _socket.socket:
+ Don't change the arglist requirements. + Give the wrapper the same docstring as _socket.socket (it didn't have any docstring).
This commit is contained in:
parent
108b7918b0
commit
8c3fb874ae
1 changed files with 3 additions and 2 deletions
|
|
@ -62,8 +62,9 @@ if (sys.platform.lower().startswith("win")
|
||||||
|
|
||||||
_realsocketcall = _socket.socket
|
_realsocketcall = _socket.socket
|
||||||
|
|
||||||
def socket(family, type, proto=0):
|
def socket(*args):
|
||||||
return _socketobject(_realsocketcall(family, type, proto))
|
return _socketobject(_realsocketcall(*args))
|
||||||
|
socket.__doc__ = _realsocketcall.__doc__
|
||||||
|
|
||||||
if SSL_EXISTS:
|
if SSL_EXISTS:
|
||||||
_realsslcall = _ssl.ssl
|
_realsslcall = _ssl.ssl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue