From 8c1ad8e5092d3bd51b6ffaccaff52e92b9609851 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 12 Nov 2016 00:57:45 +0200 Subject: [PATCH] Disable SSL for Python < 2.7.9 --- platformio/pioplus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platformio/pioplus.py b/platformio/pioplus.py index 8bda202c..19b1cfee 100644 --- a/platformio/pioplus.py +++ b/platformio/pioplus.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import sys import os import subprocess from os.path import dirname, join @@ -41,7 +42,8 @@ class PioPlusPackageManager(PackageManager): self, join(util.get_home_dir(), "packages"), [ "https://dl.bintray.com/platformio/dl-packages/manifest.json", - "https://dl.platformio.org/packages/manifest.json" + "http%s://dl.platformio.org/packages/manifest.json" % + ("" if sys.version_info < (2, 7, 9) else "s") ])