commit | daa29d01b749daa4843bcac80bd0067a827cfb8a | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <orsenthil@gmail.com> | Thu Nov 18 15:36:41 2010 +0000 |
committer | Senthil Kumaran <orsenthil@gmail.com> | Thu Nov 18 15:36:41 2010 +0000 |
tree | 17725f0e7801121e5308a09b14d45d2b71bebb98 | |
parent | d8b661dd908629b5fc0f50e3e0c5fc5c85f9cb72 [diff] [blame] |
Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index 38efd50..2ddd281 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py
@@ -711,7 +711,7 @@ _userprog = re.compile('^(.*)@(.*)$') match = _userprog.match(host) - if match: return map(unquote, match.group(1, 2)) + if match: return match.group(1, 2) return None, host _passwdprog = None