On Windows, make sure SocketType is the same as socket. (SF bug
authorGuido van Rossum <guido@python.org>
Thu, 22 Aug 2002 17:31:16 +0000 (17:31 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 22 Aug 2002 17:31:16 +0000 (17:31 +0000)
598097)

Lib/socket.py

index 86eb55e34d97cea73ff5c2977ee43b742815dc22..a8a4e39d5a18f464aedba1e91557bf82b7a5fbae 100644 (file)
@@ -181,7 +181,7 @@ class _socketobject(object):
     del _m, _s
 
 if _needwrapper:
-    socket = _socketobject
+    socket = SocketType = _socketobject
 
 class _fileobject(object):
     """Faux file object attached to a socket object."""