Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1282)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/server.py

Issue 2476653002: wptserve: Import the latest revision of wptserve-related files. (Closed)
Patch Set: Add six Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/server.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/server.py b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/server.py
index 31929efd6e18937c10454cc68097e8c7ee627490..0ab512cb2a5626ca051ee2e755eef205037e7d4c 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/server.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/server.py
@@ -9,7 +9,8 @@ import threading
import time
import traceback
import types
-import urlparse
+
+from six.moves.urllib.parse import urlsplit, urlunsplit
from . import routes as default_routes
from .logger import get_logger
@@ -89,7 +90,7 @@ class RequestRewriter(object):
:param request_handler: BaseHTTPRequestHandler for which to
rewrite the request.
"""
- split_url = urlparse.urlsplit(request_handler.path)
+ split_url = urlsplit(request_handler.path)
if split_url.path in self.rules:
methods, destination = self.rules[split_url.path]
if "*" in methods or request_handler.command in methods:
@@ -97,7 +98,7 @@ class RequestRewriter(object):
(request_handler.path, destination))
new_url = list(split_url)
new_url[2] = destination
- new_url = urlparse.urlunsplit(new_url)
+ new_url = urlunsplit(new_url)
request_handler.path = new_url
@@ -456,6 +457,6 @@ class WebTestHttpd(object):
if not self.started:
return None
- return urlparse.urlunsplit(("http" if not self.use_ssl else "https",
- "%s:%s" % (self.host, self.port),
- path, query, fragment))
+ return urlunsplit(("http" if not self.use_ssl else "https",
+ "%s:%s" % (self.host, self.port),
+ path, query, fragment))
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698