[Python-checkins] python/nondist/sandbox/setuptools pkg_resources.py, 1.55, 1.56

pje@users.sourceforge.net pje at users.sourceforge.net
Wed Aug 3 15:18:53 CEST 2005


Update of /cvsroot/python/python/nondist/sandbox/setuptools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21843

Modified Files:
	pkg_resources.py 
Log Message:
Fix a problem with zip paths reported by Ashley Walsh.


Index: pkg_resources.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/pkg_resources.py,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- pkg_resources.py	31 Jul 2005 16:31:17 -0000	1.55
+++ pkg_resources.py	3 Aug 2005 13:18:50 -0000	1.56
@@ -1122,7 +1122,7 @@
             for path in self.zipinfo:
                 parts = path.split(os.sep)
                 while parts:
-                    parent = '/'.join(parts[:-1])
+                    parent = os.sep.join(parts[:-1])
                     if parent in ind:
                         ind[parent].append(parts[-1])
                         break



More information about the Python-checkins mailing list