Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32d23c9 commit 7db04e7Copy full SHA for 7db04e7
1 file changed
Lib/urllib2.py
@@ -1099,8 +1099,8 @@ def ftp_open(self, req):
1099
if port is None:
1100
port = ftplib.FTP_PORT
1101
path, attrs = splitattr(req.get_selector())
1102
- path = unquote(path)
1103
dirs = path.split('/')
+ dirs = map(unquote, dirs)
1104
dirs, file = dirs[:-1], dirs[-1]
1105
if dirs and not dirs[0]:
1106
dirs = dirs[1:]
0 commit comments