[pypy-commit] pypy py3k: Another py3k syntax at applevel

amauryfa noreply at buildbot.pypy.org
Wed Oct 12 22:23:22 CEST 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r47984:bd26d84b3e84
Date: 2011-10-12 22:19 +0200
http://bitbucket.org/pypy/pypy/changeset/bd26d84b3e84/

Log:	Another py3k syntax at applevel

diff --git a/pypy/module/__builtin__/app_io.py b/pypy/module/__builtin__/app_io.py
--- a/pypy/module/__builtin__/app_io.py
+++ b/pypy/module/__builtin__/app_io.py
@@ -25,7 +25,7 @@
         f.close()
     #Don't exec the source directly, as this loses the filename info
     co = compile(source.rstrip()+"\n", filename, 'exec')
-    exec co in glob, loc
+    exec(co, glob, loc)
 
 def raw_input(prompt=None):
     """raw_input([prompt]) -> string


More information about the pypy-commit mailing list