Browse Source

build: actually use SSL when downloading things via python (#28885)

Samuel Attard 4 years ago
parent
commit
e373df3bc3
1 changed files with 0 additions and 3 deletions
  1. 0 3
      script/lib/util.py

+ 0 - 3
script/lib/util.py

@@ -65,9 +65,6 @@ def scoped_env(key, value):
 def download(text, url, path):
   safe_mkdir(os.path.dirname(path))
   with open(path, 'wb') as local_file:
-    if hasattr(ssl, '_create_unverified_context'):
-      ssl._create_default_https_context = ssl._create_unverified_context
-
     print("Downloading %s to %s" % (url, path))
     web_file = urlopen(url)
     info = web_file.info()