]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #817379: Allow for absolute ftp paths.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 15 Feb 2004 20:52:00 +0000 (20:52 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 15 Feb 2004 20:52:00 +0000 (20:52 +0000)
Lib/urllib2.py

index d0f1ad7830d938d94168456784152c6ca71f64ee..51ab15584c5c225a9aed4cb5801f7c9b6c5a86d9 100644 (file)
@@ -1021,8 +1021,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:]