hctgettaef: Update for Python 3 (#2195)

Python 2 was dropped from the project, but this utility still required it.
This commit is contained in:
JasperNV 2019-05-21 11:01:45 -07:00 коммит произвёл Tristan Labelle
Родитель c9b9676c5d
Коммит cc64a35288
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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()