From e72e08ea9c7ed2f19ec7539984a3740db056fdba Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 3 Sep 2018 15:05:21 +0530 Subject: Allow bootstrap to be run before anything else is installed --- python/servo/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/servo/util.py') diff --git a/python/servo/util.py b/python/servo/util.py index d71cffe27da..c093978e631 100644 --- a/python/servo/util.py +++ b/python/servo/util.py @@ -20,7 +20,6 @@ import StringIO import sys import zipfile import urllib2 -import certifi try: @@ -30,6 +29,7 @@ except ImportError: # The cafile parameter was added in 2.7.9 if HAS_SNI and sys.version_info >= (2, 7, 9): + import certifi STATIC_RUST_LANG_ORG_DIST = "https://static.rust-lang.org/dist" URLOPEN_KWARGS = {"cafile": certifi.where()} else: -- cgit v1.2.3