Guard the PROTOCOL setting so that we work on older pythons

pull/11730/head
Toshio Kuratomi 9 years ago
parent 36382face9
commit 8ee3b7384d

@ -109,6 +109,7 @@ except ImportError:
# Select a protocol that includes all secure tls protocols
# Exclude insecure ssl protocols if possible
if HAS_SSL:
# If we can't find extra tls methods, ssl.PROTOCOL_TLSv1 is sufficient
PROTOCOL = ssl.PROTOCOL_TLSv1
if not HAS_SSLCONTEXT and HAS_SSL:

Loading…
Cancel
Save