]> granicus.if.org Git - python/commitdiff
For platforms (like Windows) that wrap _socket.socket:
authorTim Peters <tim.peters@gmail.com>
Wed, 31 Jul 2002 17:32:11 +0000 (17:32 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 31 Jul 2002 17:32:11 +0000 (17:32 +0000)
+ Don't change the arglist requirements.
+ Give the wrapper the same docstring as _socket.socket (it didn't
  have any docstring).

Lib/socket.py

index c351a91cc2b8c906a62b5aaf8b7ba450e1acf29a..7bb00a6a798f4cca22a84bd2c87d9f18daf9e2d7 100644 (file)
@@ -62,8 +62,9 @@ if (sys.platform.lower().startswith("win")
 
     _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