diff options
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) |