mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Fix issue #1313119: urlparse "caches" parses regardless of encoding
This commit is contained in:
parent
adf9ffdfbe
commit
2f9ca29d10
2 changed files with 11 additions and 1 deletions
|
@ -184,7 +184,7 @@ def urlsplit(url, scheme='', allow_fragments=True):
|
|||
Note that we don't break the components up in smaller bits
|
||||
(e.g. netloc is a single string) and we don't expand % escapes."""
|
||||
allow_fragments = bool(allow_fragments)
|
||||
key = url, scheme, allow_fragments
|
||||
key = url, scheme, allow_fragments, type(url), type(scheme)
|
||||
cached = _parse_cache.get(key, None)
|
||||
if cached:
|
||||
return cached
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue