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/request.py b/Lib/urllib/request.py index 9674b96..f3fb7be 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py
@@ -1300,8 +1300,8 @@ 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)