Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update parse.py
  • Loading branch information
geryogam authored Sep 2, 2019
commit 050de62ef6b9e74315768af5c5e21c433642553f
3 changes: 2 additions & 1 deletion Lib/urllib/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ def urlsplit(url, scheme='', allow_fragments=True):
return _coerce_result(cached)
if len(_parse_cache) >= MAX_CACHE_SIZE: # avoid runaway growth
clear_cache()
netloc = query = fragment = None # no components NOR DELIMITERS
netloc = ''
query = fragment = None # no components NOR DELIMITERS
i = url.find(':')
if i > 0:
if url[:i] == 'http': # optimize the common case
Expand Down