mirror of
https://github.com/python/cpython.git
synced 2025-10-13 18:33:34 +00:00
Remove unused variable
This commit is contained in:
parent
118aa5337c
commit
3e44248483
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ def urlparse(url, scheme = '', allow_fragments = 1):
|
||||||
return cached
|
return cached
|
||||||
if len(_parse_cache) >= MAX_CACHE_SIZE: # avoid runaway growth
|
if len(_parse_cache) >= MAX_CACHE_SIZE: # avoid runaway growth
|
||||||
clear_cache()
|
clear_cache()
|
||||||
netloc = path = params = query = fragment = ''
|
netloc = params = query = fragment = ''
|
||||||
i = url.find(':')
|
i = url.find(':')
|
||||||
if i > 0:
|
if i > 0:
|
||||||
if url[:i] == 'http': # optimize the common case
|
if url[:i] == 'http': # optimize the common case
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue