From 74d1ceaa06a33675f8f9444d0de5482dd9459495 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Thu, 12 Aug 2010 17:46:52 -0700 Subject: [PATCH] Explicitly importing create_connection in socket.py rather than relying on __all__, because Macs apparently still ship with 2.6.1, which doesn't have the fix to http://bugs.python.org/issue5711 . Thanks to brantley and mcarter for the bug reports, and redbo for putting the clues together. --- eventlet/green/socket.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eventlet/green/socket.py b/eventlet/green/socket.py index 67e1472..3fbb08e 100644 --- a/eventlet/green/socket.py +++ b/eventlet/green/socket.py @@ -7,6 +7,8 @@ exec "\n".join(["%s = __socket.%s" % (var, var) for var in __socket.__all__]) # these are desired but are not in __all__ _GLOBAL_DEFAULT_TIMEOUT = __socket._GLOBAL_DEFAULT_TIMEOUT _fileobject = __socket._fileobject +# missing from __all__ because 2.6.1 is still common on Macs +create_connection = __socket.create_connection try: ssl = __socket.ssl except AttributeError: