[pypy-svn] r73518 - pypy/branch/decouple-host-opcodes/pypy/translator/goal

fijal at codespeak.net fijal at codespeak.net
Wed Apr 7 21:06:00 CEST 2010


Author: fijal
Date: Wed Apr  7 21:05:44 2010
New Revision: 73518

Modified:
   pypy/branch/decouple-host-opcodes/pypy/translator/goal/nanos.py
Log:
fix translation


Modified: pypy/branch/decouple-host-opcodes/pypy/translator/goal/nanos.py
==============================================================================
--- pypy/branch/decouple-host-opcodes/pypy/translator/goal/nanos.py	(original)
+++ pypy/branch/decouple-host-opcodes/pypy/translator/goal/nanos.py	Wed Apr  7 21:05:44 2010
@@ -26,7 +26,7 @@
 """
 
 from pypy.interpreter.gateway import applevel, ObjSpace, W_Root, interp2app
-import os
+import os, py
 
 app_os_path = applevel(r'''
     from os.path import dirname, join, abspath, isfile, islink
@@ -59,6 +59,6 @@
 path_module_for_testing = type(os)("os.path")
 os_module_for_testing = type(os)("os")
 os_module_for_testing.path = path_module_for_testing
-eval(app_os_path.code, path_module_for_testing.__dict__)
-eval(app_os.code, os_module_for_testing.__dict__)
+eval(py.code.Source(app_os_path.source).compile(), path_module_for_testing.__dict__)
+eval(py.code.Source(app_os.source).compile(), os_module_for_testing.__dict__)
 



More information about the Pypy-commit mailing list