[pypy-svn] r56491 - pypy/dist/pypy/module/__builtin__
arigo at codespeak.net
arigo at codespeak.net
Sat Jul 12 15:11:30 CEST 2008
Author: arigo
Date: Sat Jul 12 15:11:29 2008
New Revision: 56491
Modified:
pypy/dist/pypy/module/__builtin__/importing.py
Log:
Quick hack so that the function really does what its docstring suggests.
Modified: pypy/dist/pypy/module/__builtin__/importing.py
==============================================================================
--- pypy/dist/pypy/module/__builtin__/importing.py (original)
+++ pypy/dist/pypy/module/__builtin__/importing.py Sat Jul 12 15:11:29 2008
@@ -49,12 +49,12 @@
""" This is the way pypy does it. A pyc is only used if the py file exists AND
the pyc file contains the timestamp of the py. """
pyfile_exist, pycfile_exists, pycfile_ts_valid = info_modtype(space, filepart)
- if pycfile_ts_valid:
+ if not pyfile_exist:
+ return NOFILE
+ elif pycfile_ts_valid:
return PYCFILE
- elif pyfile_exist:
- return PYFILE
else:
- return NOFILE
+ return PYFILE
def find_modtype_cpython(space, filepart):
""" This is the way cpython does it (where the py file doesnt exist but there
More information about the Pypy-commit
mailing list