diff options
| author | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-12-13 17:58:23 +0000 |
|---|---|---|
| committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-12-13 17:58:23 +0000 |
| commit | 3f046536e09a344610c40b4c5a64130d12ff7beb (patch) | |
| tree | a5d520e84c37767c3159cb4bab7bd666c844f854 /Lib/urlparse.py | |
| parent | 2f2e3992903cfb07a46e1636f91319a49d148820 (diff) | |
| download | cpython-3f046536e09a344610c40b4c5a64130d12ff7beb.tar.gz | |
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 eade040ff6..ad5d75f681 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 |
