[pypy-svn] r75359 - pypy/trunk/pypy/module/zipimport
fijal at codespeak.net
fijal at codespeak.net
Sun Jun 13 06:53:19 CEST 2010
Author: fijal
Date: Sun Jun 13 06:53:18 2010
New Revision: 75359
Modified:
pypy/trunk/pypy/module/zipimport/interp_zipimport.py
Log:
observe-and-reproduce
Modified: pypy/trunk/pypy/module/zipimport/interp_zipimport.py
==============================================================================
--- pypy/trunk/pypy/module/zipimport/interp_zipimport.py (original)
+++ pypy/trunk/pypy/module/zipimport/interp_zipimport.py Sun Jun 13 06:53:18 2010
@@ -362,6 +362,8 @@
prefix = name[len(filename):]
if prefix.startswith(os.path.sep) or prefix.startswith(ZIPSEP):
prefix = prefix[1:]
+ if prefix and len(name) != len(filename):
+ prefix += ZIPSEP
w_result = space.wrap(W_ZipImporter(space, name, filename,
zip_file.NameToInfo, prefix))
zip_cache.set(filename, w_result)
More information about the Pypy-commit
mailing list