зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1530846: fix issue when installing hostutils r=gbrown
Per https://pythonhosted.org/six/index.html, urlopen resides in urllib.request. Differential Revision: https://phabricator.services.mozilla.com/D21277 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
6c217088a5
Коммит
9864393fc6
|
@ -827,7 +827,7 @@ def _log_info(text):
|
|||
|
||||
def _download_file(url, filename, path):
|
||||
_log_debug("Download %s to %s/%s..." % (url, path, filename))
|
||||
f = urllib.urlopen(url)
|
||||
f = urllib.request.urlopen(url)
|
||||
if not os.path.isdir(path):
|
||||
try:
|
||||
os.makedirs(path)
|
||||
|
|
Загрузка…
Ссылка в новой задаче