Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy

This commit is contained in:
Senthil Kumaran 2010-11-18 15:36:41 +00:00
parent d8b661dd90
commit daa29d01b7
3 changed files with 18 additions and 8 deletions

View file

@ -711,7 +711,7 @@ def splituser(host):
_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