diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-02-15 20:51:39 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-02-15 20:51:39 (GMT) |
commit | 7db04e7c4802022cfb3a1daacab333cd9efd5a78 (patch) | |
tree | 03ef251ea0103024b9601d9eb4605c1c4949c5bc | |
parent | 32d23c9264a44316b028f712bdc516fbddb0a752 (diff) | |
download | cpython-7db04e7c4802022cfb3a1daacab333cd9efd5a78.zip cpython-7db04e7c4802022cfb3a1daacab333cd9efd5a78.tar.gz cpython-7db04e7c4802022cfb3a1daacab333cd9efd5a78.tar.bz2 |
Patch #817379: Allow for absolute ftp paths.
Backported to 2.3.
-rw-r--r-- | Lib/urllib2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 43e9c7d..0980ce2 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -1099,8 +1099,8 @@ class FTPHandler(BaseHandler): if port is None: port = ftplib.FTP_PORT path, attrs = splitattr(req.get_selector()) - path = unquote(path) dirs = path.split('/') + dirs = map(unquote, dirs) dirs, file = dirs[:-1], dirs[-1] if dirs and not dirs[0]: dirs = dirs[1:] |