hctgettaef: Update for Python 3 (#2195)
Python 2 was dropped from the project, but this utility still required it.
This commit is contained in:
Родитель
c9b9676c5d
Коммит
cc64a35288
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче