[Python-checkins] python/dist/src/Lib urllib2.py,1.53.6.2,1.53.6.3

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Feb 15 15:52:03 EST 2004


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

Modified Files:
      Tag: release23-maint
	urllib2.py 
Log Message:
Patch #817379: Allow for absolute ftp paths.


Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.53.6.2
retrieving revision 1.53.6.3
diff -C2 -d -r1.53.6.2 -r1.53.6.3
*** urllib2.py	4 Nov 2003 13:53:38 -0000	1.53.6.2
--- urllib2.py	15 Feb 2004 20:52:00 -0000	1.53.6.3
***************
*** 1022,1027 ****
              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]:
--- 1022,1027 ----
              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