diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-11-20 11:24:08 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-11-20 11:24:08 (GMT) |
commit | 9fce551e0e630f8da454b77d46264d812ba57f46 (patch) | |
tree | 51e17454cef3b313c62b975b57f6be15c3992409 /Lib/urllib2.py | |
parent | 6be0e9fa905bf22fc8ef1df0b57d7b9cef5cf525 (diff) | |
download | cpython-9fce551e0e630f8da454b77d46264d812ba57f46.zip cpython-9fce551e0e630f8da454b77d46264d812ba57f46.tar.gz cpython-9fce551e0e630f8da454b77d46264d812ba57f46.tar.bz2 |
Merged revisions 86520 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86520 | senthil.kumaran | 2010-11-18 23:36:41 +0800 (Thu, 18 Nov 2010) | 3 lines
Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy
........
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index adc6d8c..7d90db2 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -1349,8 +1349,8 @@ class FTPHandler(BaseHandler): else: passwd = None host = unquote(host) - user = unquote(user or '') - passwd = unquote(passwd or '') + user = user or '' + passwd = passwd or '' try: host = socket.gethostbyname(host) |