Skip to content

Commit

Permalink
For platforms (like Windows) that wrap _socket.socket:
Browse files Browse the repository at this point in the history
+ Don't change the arglist requirements.
+ Give the wrapper the same docstring as _socket.socket (it didn't
  have any docstring).
  • Loading branch information
tim-one committed Jul 31, 2002
1 parent 108b791 commit 8c3fb87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@

_realsocketcall = _socket.socket

def socket(family, type, proto=0):
return _socketobject(_realsocketcall(family, type, proto))
def socket(*args):
return _socketobject(_realsocketcall(*args))
socket.__doc__ = _realsocketcall.__doc__

if SSL_EXISTS:
_realsslcall = _ssl.ssl
Expand Down

0 comments on commit 8c3fb87

Please sign in to comment.