diff options
author | marmeladema <xademax@gmail.com> | 2019-10-14 00:36:20 +0100 |
---|---|---|
committer | marmeladema <xademax@gmail.com> | 2019-10-16 00:22:07 +0100 |
commit | f1d42fe787c20ff2d62b0aab00874fe9c79af352 (patch) | |
tree | 7aacb29eb1243018d2610de3274ef0ac0edf665e /python/servo/bootstrap_commands.py | |
parent | f063ea64a5023aa95f7165ed46d87c43c1f52340 (diff) | |
download | servo-f1d42fe787c20ff2d62b0aab00874fe9c79af352.tar.gz servo-f1d42fe787c20ff2d62b0aab00874fe9c79af352.zip |
Use urllib from six module in order to be compatible with Python3
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index 0e7b7d68f35..fbc02afb61a 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -18,7 +18,7 @@ import re import subprocess import sys import traceback -import urllib2 +import six.moves.urllib as urllib import glob from mach.decorators import ( @@ -220,7 +220,7 @@ class MachCommands(CommandBase): try: content_base64 = download_bytes("Chromium HSTS preload list", chromium_hsts_url) - except urllib2.URLError: + except urllib.error.URLError: print("Unable to download chromium HSTS preload list; are you connected to the internet?") sys.exit(1) @@ -258,7 +258,7 @@ class MachCommands(CommandBase): try: content = download_bytes("Public suffix list", list_url) - except urllib2.URLError: + except urllib.error.URLError: print("Unable to download the public suffix list; are you connected to the internet?") sys.exit(1) |