Bug 1530846: fix issue when installing hostutils r=gbrown
authorAndrew Erickson <aerickson@mozilla.com>
Tue, 26 Feb 2019 22:38:35 +0000
changeset 461272 6cf5eb6b1a8c28d56b42aba2e8632643e6dc94dc
parent 461271 6b2a08035ed517d910650f12c9c7fd731411d073
child 461273 279a75b5a6d42a41176750f113594139060d8924
push id35621
push userncsoregi@mozilla.com
push dateWed, 27 Feb 2019 04:29:56 +0000
treeherdermozilla-central@31abc7fd9a26 [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())