[pypy-commit] pypy py3k: exec is a function in python3, not a statement

antocuni noreply at buildbot.pypy.org
Fri Jan 27 00:31:43 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r51837:4a4a774f432f
Date: 2012-01-27 00:10 +0100
http://bitbucket.org/pypy/pypy/changeset/4a4a774f432f/

Log:	exec is a function in python3, not a statement

diff --git a/pypy/interpreter/test/test_syntax.py b/pypy/interpreter/test/test_syntax.py
--- a/pypy/interpreter/test/test_syntax.py
+++ b/pypy/interpreter/test/test_syntax.py
@@ -17,48 +17,48 @@
     def f():
         def g():
             global x
-            exec "hi"
+            exec("hi")
             x
 
     def f(x):
         def g():
             global x
-            exec "hi"
+            exec("hi")
             x
 
     def f():
         def g():
-            exec "hi"
+            exec("hi")
 
     def f():
-        exec "hi"
+        exec("hi")
 
     def f():
-        exec "hi"
+        exec("hi")
         def g():
             global x
             x
 
     def f():
-        exec "hi"
+        exec("hi")
         def g(x):
             x
 
     def f():
-        exec "hi"
+        exec("hi")
         lambda x: x
 
     def f():
-        exec "hi"
+        exec("hi")
         x
 
     def f():
-        exec "hi"
+        exec("hi")
         (i for i in x)
 
     def f():
         class g:
-            exec "hi"
+            exec("hi")
             x
 
 """)


More information about the pypy-commit mailing list