[pypy-commit] pypy py3k: fix syntax

antocuni noreply at buildbot.pypy.org
Mon Feb 20 20:43:36 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52686:be8572d82a2f
Date: 2012-02-20 20:42 +0100
http://bitbucket.org/pypy/pypy/changeset/be8572d82a2f/

Log:	fix syntax

diff --git a/pypy/interpreter/test/test_main.py b/pypy/interpreter/test/test_main.py
--- a/pypy/interpreter/test/test_main.py
+++ b/pypy/interpreter/test/test_main.py
@@ -9,7 +9,7 @@
 testcode = """\
 def main():
     aStr = 'hello world'
-    print len(aStr)
+    print(len(aStr))
 
 main()
 """
@@ -20,7 +20,7 @@
 import sys
 if __name__ == '__main__':
     aStr = sys.argv[1]
-    print len(aStr)
+    print(len(aStr))
 """
 
 testresultoutput = '11\n'


More information about the pypy-commit mailing list