On OSX PROTOCOL_TLSv1_2 is not available as python is built against the system openssl which is too old

This commit is contained in:
Kovid Goyal 2015-01-07 22:34:45 +05:30
parent 6a891948d3
commit e94e7630fa

View File

@ -11,7 +11,7 @@ from contextlib import closing
from calibre import get_proxies
from calibre.constants import ispy3
has_ssl_verify = hasattr(ssl, 'PROTOCOL_TLSv1_2') and sys.version_info[:3] > (2, 7, 8)
has_ssl_verify = sys.version_info[:3] > (2, 7, 8)
class HTTPError(ValueError):