From 21fcea2c3155f57dba5c64a55f1f8fee02804256 Mon Sep 17 00:00:00 2001 From: Alexandre Beloin Date: Wed, 4 Feb 2015 21:47:57 -0500 Subject: [PATCH] Temporary fix for Python 2.7.9 for SSL See https://www.python.org/dev/peps/pep-0476/ for more info. --- SickBeard.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SickBeard.py b/SickBeard.py index 8ff445f4..8f0f0de5 100755 --- a/SickBeard.py +++ b/SickBeard.py @@ -50,6 +50,10 @@ sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), 'lib' if sys.hexversion >= 0x020600F0: from multiprocessing import freeze_support # @UnresolvedImport +if sys.version_info >= (2, 7, 9): + import ssl + ssl._create_default_https_context = ssl._create_unverified_context + import locale import datetime import threading