From cc64a35288522de7c705297ca66aa202a7ba2c23 Mon Sep 17 00:00:00 2001 From: JasperNV <46733637+JasperNV@users.noreply.github.com> Date: Tue, 21 May 2019 11:01:45 -0700 Subject: [PATCH] hctgettaef: Update for Python 3 (#2195) Python 2 was dropped from the project, but this utility still required it. --- utils/hct/hctgettaef.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/hct/hctgettaef.py b/utils/hct/hctgettaef.py index 80ff0a195..91306d03a 100644 --- a/utils/hct/hctgettaef.py +++ b/utils/hct/hctgettaef.py @@ -1,4 +1,4 @@ -import urllib +import urllib.request import os import ssl import zipfile @@ -13,7 +13,7 @@ if not os.path.isdir(taef_dir): try: ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) - response = urllib.urlopen(url, context=ctx) + response = urllib.request.urlopen(url, context=ctx) f = open(zipfile_name, 'wb') f.write(response.read()) f.close()