Refactoring of #952

This commit is contained in:
Miroslav Stampar 2014-11-24 12:56:39 +01:00
parent 27cd9e7064
commit a0d95a8ec4

View File

@ -19,7 +19,7 @@ try:
except ImportError:
pass
_protocols = [ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv23]
_protocols = filter(None, (getattr(ssl, _, None) for _ in ("PROTOCOL_SSLv3", "PROTOCOL_TLSv1", "PROTOCOL_SSLv23", "PROTOCOL_SSLv2")))
class HTTPSConnection(httplib.HTTPSConnection):
"""