sslutil: drop defunct ssl version constants
Nobody outside sslutil should be using these constants anyway.
--- a/mercurial/sslutil.py Wed Jan 14 15:46:00 2015 -0500
+++ b/mercurial/sslutil.py Wed Jan 14 15:46:21 2015 -0500
@@ -14,7 +14,6 @@
# avoid using deprecated/broken FakeSocket in python 2.6
import ssl
CERT_REQUIRED = ssl.CERT_REQUIRED
- PROTOCOL_TLSv1 = ssl.PROTOCOL_TLSv1
try:
ssl_context = ssl.SSLContext
@@ -50,7 +49,7 @@
ca_certs=None, serverhostname=None):
sslsocket = ssl.wrap_socket(sock, keyfile, certfile,
cert_reqs=cert_reqs, ca_certs=ca_certs,
- ssl_version=PROTOCOL_TLSv1)
+ ssl_version=ssl.PROTOCOL_TLSv1)
# check if wrap_socket failed silently because socket had been
# closed
# - see http://bugs.python.org/issue13721
@@ -60,8 +59,6 @@
except ImportError:
CERT_REQUIRED = 2
- PROTOCOL_TLSv1 = 3
-
import socket, httplib
def ssl_wrap_socket(sock, keyfile, certfile, cert_reqs=CERT_REQUIRED,