From 9e07258da097f539da03ace171372fc15effa1cb Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 9 Jul 2009 21:57:46 -0400 Subject: Py3k: print statements in test files and gold annotation files have to be switched to a 2-and-3 compatible form that 2to3.py won't change. --- test/farm/annotate/gold_anno_dir/a_a.py,cover | 4 ++-- test/farm/annotate/gold_anno_dir/b_b.py,cover | 3 ++- test/farm/annotate/src/a/a.py | 4 ++-- test/farm/annotate/src/b/b.py | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/test/farm/annotate/gold_anno_dir/a_a.py,cover b/test/farm/annotate/gold_anno_dir/a_a.py,cover index fb3f543..d0ff3c0 100644 --- a/test/farm/annotate/gold_anno_dir/a_a.py,cover +++ b/test/farm/annotate/gold_anno_dir/a_a.py,cover @@ -1,5 +1,5 @@ > def a(x): > if x == 1: -> print "x is 1" +> print("x is 1") ! else: -! print "x is not 1" +! print("x is not 1") diff --git a/test/farm/annotate/gold_anno_dir/b_b.py,cover b/test/farm/annotate/gold_anno_dir/b_b.py,cover index a3f5dae..90d076f 100644 --- a/test/farm/annotate/gold_anno_dir/b_b.py,cover +++ b/test/farm/annotate/gold_anno_dir/b_b.py,cover @@ -1,2 +1,3 @@ > def b(x): -> print "x is %s" % x +> msg = "x is %s" % x +> print(msg) diff --git a/test/farm/annotate/src/a/a.py b/test/farm/annotate/src/a/a.py index 825ce1b..c2583d1 100644 --- a/test/farm/annotate/src/a/a.py +++ b/test/farm/annotate/src/a/a.py @@ -1,5 +1,5 @@ def a(x): if x == 1: - print "x is 1" + print("x is 1") else: - print "x is not 1" + print("x is not 1") diff --git a/test/farm/annotate/src/b/b.py b/test/farm/annotate/src/b/b.py index 27629e4..625a549 100644 --- a/test/farm/annotate/src/b/b.py +++ b/test/farm/annotate/src/b/b.py @@ -1,2 +1,3 @@ def b(x): - print "x is %s" % x + msg = "x is %s" % x + print(msg) -- cgit v1.2.1