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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.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
Index: third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py
index 6b8a7cef86ef2b4f156dc239e61b6375f26b8026..a7c389601b11fbe22265ee578091df7472dfe097 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py
@@ -3,7 +3,8 @@ import cgi
import Cookie
import StringIO
import tempfile
-import urlparse
+
+from six.moves.urllib.parse import parse_qsl, urlsplit
from . import stash
from .utils import HTTPException
@@ -265,7 +266,7 @@ class Request(object):
host,
port,
self.request_path)
- self.url_parts = urlparse.urlsplit(self.url)
+ self.url_parts = urlsplit(self.url)
self._raw_headers = request_handler.headers
@@ -290,7 +291,7 @@ class Request(object):
@property
def GET(self):
if self._GET is None:
- params = urlparse.parse_qsl(self.url_parts.query, keep_blank_values=True)
+ params = parse_qsl(self.url_parts.query, keep_blank_values=True)
self._GET = MultiDict()
for key, value in params:
self._GET.add(key, value)

Powered by Google App Engine
This is Rietveld 408576698