Skip to content

Commit 68a5769

Browse files
committed
Use the attributes of the named tuple.
1 parent 19168ac commit 68a5769

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cheroot/server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,13 +778,12 @@ def parse_request_uri(self, uri):
778778
return None, None, uri
779779

780780
parsed = urllib.parse.urlparse(uri)
781-
scheme, authority, path, params, query, fragment = parsed
782-
if scheme and QUESTION_MARK not in scheme:
781+
if parsed.scheme and QUESTION_MARK not in parsed.scheme:
783782
# An absoluteURI.
784783
# If there's a scheme (and it must be http or https), then:
785784
# http_URL = "http:" "//" host [ ":" port ] [ abs_path [ "?" query
786785
# ]]
787-
return scheme, authority, path
786+
return parsed.scheme, parsed.authority, parsed.path
788787

789788
if uri.startswith(FORWARD_SLASH):
790789
# An abs_path.

0 commit comments

Comments
 (0)