diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-12-13 17:58:23 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-12-13 17:58:23 (GMT) |
commit | 2f9ca29d106779d960bf8680ec597ffce5e25d66 (patch) | |
tree | d2342a419d7030737a3b0fd7ae2f8e3f24199b7d /Lib/urlparse.py | |
parent | adf9ffdfbe0fb00f5a47444c1dc53eb280d0bd0a (diff) | |
download | cpython-2f9ca29d106779d960bf8680ec597ffce5e25d66.zip cpython-2f9ca29d106779d960bf8680ec597ffce5e25d66.tar.gz cpython-2f9ca29d106779d960bf8680ec597ffce5e25d66.tar.bz2 |
Fix issue #1313119: urlparse "caches" parses regardless of encoding
Diffstat (limited to 'Lib/urlparse.py')
-rw-r--r-- | Lib/urlparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py index eade040..ad5d75f 100644 --- a/Lib/urlparse.py +++ b/Lib/urlparse.py @@ -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 |