[pypy-svn] r70098 - pypy/branch/import-builtin/pypy/module/imp

afa at codespeak.net afa at codespeak.net
Mon Dec 14 16:03:55 CET 2009


Author: afa
Date: Mon Dec 14 16:03:55 2009
New Revision: 70098

Modified:
   pypy/branch/import-builtin/pypy/module/imp/importing.py
Log:
translation fixes


Modified: pypy/branch/import-builtin/pypy/module/imp/importing.py
==============================================================================
--- pypy/branch/import-builtin/pypy/module/imp/importing.py	(original)
+++ pypy/branch/import-builtin/pypy/module/imp/importing.py	Mon Dec 14 16:03:55 2009
@@ -580,15 +580,16 @@
     Load a source module from a given file and return its module
     object.
     """
+    w = space.wrap
+
     if space.config.objspace.usepycfiles:
         cpathname = pathname + 'c'
         mtime = int(os.stat(pathname)[stat.ST_MTIME])
         stream = check_compiled_module(space, cpathname, mtime)
     else:
-        stream = None
         cpathname = None
-
-    w = space.wrap
+        mtime = 0
+        stream = None
 
     if stream:
         # existing and up-to-date .pyc file



More information about the Pypy-commit mailing list