Bug 1530846: fix issue when installing hostutils r=gbrown
authorAndrew Erickson <aerickson@mozilla.com>
Tue, 26 Feb 2019 22:38:35 +0000
changeset 519154 6cf5eb6b1a8c28d56b42aba2e8632643e6dc94dc
parent 519153 6b2a08035ed517d910650f12c9c7fd731411d073
child 519155 279a75b5a6d42a41176750f113594139060d8924
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown
bugs1530846
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
testing/mozbase/mozrunner/mozrunner/devices/android_device.py
--- a/testing/mozbase/mozrunner/mozrunner/devices/android_device.py
+++ b/testing/mozbase/mozrunner/mozrunner/devices/android_device.py
@@ -822,17 +822,17 @@ def _log_warning(text):
 
 
 def _log_info(text):
     print("%s" % 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)
         except Exception as e:
             _log_warning(str(e))
             return False
     local_file = open(os.path.join(path, filename), 'wb')
     local_file.write(f.read())