mercurial/url.py
changeset 10411 af4c42ec19ed
parent 10409 4c94a3df4b10
child 10415 677f15da38c1
--- a/mercurial/url.py	Wed Feb 10 21:17:58 2010 +0100
+++ b/mercurial/url.py	Wed Feb 10 17:42:57 2010 -0600
@@ -272,7 +272,7 @@
 
     try:
         _create_connection = socket.create_connection
-    except ImportError:
+    except AttributeError:
         def _create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
                                source_address=None):
             # lifted from Python 2.6