From e94e7630fa1eda3b2d39c21bc3d6378a6a0766e0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 7 Jan 2015 22:34:45 +0530 Subject: [PATCH] On OSX PROTOCOL_TLSv1_2 is not available as python is built against the system openssl which is too old --- src/calibre/utils/https.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/https.py b/src/calibre/utils/https.py index 17a765aeec..e0f0719d61 100644 --- a/src/calibre/utils/https.py +++ b/src/calibre/utils/https.py @@ -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):