[pypy-svn] r78338 - pypy/branch/fast-forward/pypy/module/zipimport
afa at codespeak.net
afa at codespeak.net
Wed Oct 27 09:14:28 CEST 2010
Author: afa
Date: Wed Oct 27 09:14:27 2010
New Revision: 78338
Modified:
pypy/branch/fast-forward/pypy/module/zipimport/interp_zipimport.py
Log:
Fix translation
Modified: pypy/branch/fast-forward/pypy/module/zipimport/interp_zipimport.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/zipimport/interp_zipimport.py (original)
+++ pypy/branch/fast-forward/pypy/module/zipimport/interp_zipimport.py Wed Oct 27 09:14:27 2010
@@ -218,8 +218,9 @@
find_module.unwrap_spec = ['self', ObjSpace, str, W_Root]
def make_filename(self, fullname):
- i = fullname.rfind('.')
- subname = fullname[i+1:]
+ startpos = fullname.rfind('.') + 1 # 0 when not found
+ assert startpos >= 0
+ subname = fullname[start:]
return self.prefix + subname
def load_module(self, space, fullname):
More information about the Pypy-commit
mailing list