[Python-checkins] python/dist/src/Lib socket.py,1.22,1.23
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Wed, 31 Jul 2002 10:32:13 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv31348
Modified Files:
socket.py
Log Message:
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).
Index: socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/socket.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** socket.py 18 Jul 2002 17:08:34 -0000 1.22
--- socket.py 31 Jul 2002 17:32:11 -0000 1.23
***************
*** 63,68 ****
_realsocketcall = _socket.socket
! def socket(family, type, proto=0):
! return _socketobject(_realsocketcall(family, type, proto))
if SSL_EXISTS:
--- 63,69 ----
_realsocketcall = _socket.socket
! def socket(*args):
! return _socketobject(_realsocketcall(*args))
! socket.__doc__ = _realsocketcall.__doc__
if SSL_EXISTS: