Permalink
Browse files

Use the attributes of the named tuple.

  • Loading branch information...
jaraco committed Jan 14, 2017
1 parent 19168ac commit 68a57699a5130eb8573ba15f49039c16c853f8e4
Showing with 2 additions and 3 deletions.
  1. +2 −3 cheroot/server.py
@@ -778,13 +778,12 @@ def parse_request_uri(self, uri):
return None, None, uri
parsed = urllib.parse.urlparse(uri)
scheme, authority, path, params, query, fragment = parsed
if scheme and QUESTION_MARK not in scheme:
if parsed.scheme and QUESTION_MARK not in parsed.scheme:
# An absoluteURI.
# If there's a scheme (and it must be http or https), then:
# http_URL = "http:" "//" host [ ":" port ] [ abs_path [ "?" query
# ]]
return scheme, authority, path
return parsed.scheme, parsed.authority, parsed.path
if uri.startswith(FORWARD_SLASH):
# An abs_path.

0 comments on commit 68a5769

Please sign in to comment.