##// END OF EJS Templates
ssl: fix compatibility with pre-2.6 Python
Matt Mackall -
r10411:af4c42ec default
parent child Browse files
Show More
@@ -272,7 +272,7 b' if has_https:'
272
272
273 try:
273 try:
274 _create_connection = socket.create_connection
274 _create_connection = socket.create_connection
275 except ImportError:
275 except AttributeError:
276 def _create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
276 def _create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
277 source_address=None):
277 source_address=None):
278 # lifted from Python 2.6
278 # lifted from Python 2.6
General Comments 0
You need to be logged in to leave comments. Login now