[pypy-svn] r55494 - pypy/branch/build-external/pypy/module/zipimport
afa at codespeak.net
afa at codespeak.net
Mon Jun 2 14:35:31 CEST 2008
Author: afa
Date: Mon Jun 2 14:35:29 2008
New Revision: 55494
Modified:
pypy/branch/build-external/pypy/module/zipimport/interp_zipimport.py
Log:
Translation fix
Modified: pypy/branch/build-external/pypy/module/zipimport/interp_zipimport.py
==============================================================================
--- pypy/branch/build-external/pypy/module/zipimport/interp_zipimport.py (original)
+++ pypy/branch/build-external/pypy/module/zipimport/interp_zipimport.py Mon Jun 2 14:35:29 2008
@@ -322,7 +322,7 @@
except OSError:
# back up one path element
pos = filename.rfind('/')
- if pos == -1:
+ if pos < 0:
break
filename = filename[:pos]
continue
More information about the Pypy-commit
mailing list