[Python-checkins] python/dist/src/Lib urllib2.py,1.60,1.61

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Feb 15 15:51:42 EST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20962/Lib

Modified Files:
	urllib2.py 
Log Message:
Patch #817379: Allow for absolute ftp paths.
Backported to 2.3.


Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** urllib2.py	18 Jan 2004 20:29:54 -0000	1.60
--- urllib2.py	15 Feb 2004 20:51:39 -0000	1.61
***************
*** 1100,1105 ****
              port = ftplib.FTP_PORT
          path, attrs = splitattr(req.get_selector())
-         path = unquote(path)
          dirs = path.split('/')
          dirs, file = dirs[:-1], dirs[-1]
          if dirs and not dirs[0]:
--- 1100,1105 ----
              port = ftplib.FTP_PORT
          path, attrs = splitattr(req.get_selector())
          dirs = path.split('/')
+         dirs = map(unquote, dirs)
          dirs, file = dirs[:-1], dirs[-1]
          if dirs and not dirs[0]:




More information about the Python-checkins mailing list