diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-04-10 12:47:39 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-04-10 12:47:39 +0200 |
commit | e9942bddb0dd3ae67403e3ca486bea2e0f4ce954 (patch) | |
tree | 5e202204d4948d7cfd8165e5207657ac3a09c8ba /tests/jquery/run_jquery.py | |
parent | 53218621e934f5cb66681b22d3d91c3bbcb0d4bc (diff) | |
download | servo-e9942bddb0dd3ae67403e3ca486bea2e0f4ce954.tar.gz servo-e9942bddb0dd3ae67403e3ca486bea2e0f4ce954.zip |
Replace usage of six.moves.urllib with urllib
Also organize some of the imports. Now that Servo only uses Python 3,
this module is unnecessary. This is part of the gradual migration to
using only Python 3.
Diffstat (limited to 'tests/jquery/run_jquery.py')
-rwxr-xr-x | tests/jquery/run_jquery.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/jquery/run_jquery.py b/tests/jquery/run_jquery.py index e9d50deed7b..2aae840ac75 100755 --- a/tests/jquery/run_jquery.py +++ b/tests/jquery/run_jquery.py @@ -14,7 +14,7 @@ import six.moves.BaseHTTPServer import six.moves.SimpleHTTPServer import six.moves.socketserver import threading -import six.moves.urllib.parse +import urllib import six # List of jQuery modules that will be tested. @@ -149,13 +149,13 @@ def run_http_server(): path = self.translate_path(self.path) f = None if os.path.isdir(path): - parts = six.moves.urllib.parse.urlsplit(self.path) + parts = urllib.parse.urlsplit(self.path) if not parts.path.endswith('/'): # redirect browser - doing basically what apache does self.send_response(301) new_parts = (parts[0], parts[1], parts[2] + '/', parts[3], parts[4]) - new_url = six.moves.urllib.parse.urlunsplit(new_parts) + new_url = urllib.parse.urlunsplit(new_parts) self.send_header("Location", new_url) self.end_headers() return None |