diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-07-09 21:57:46 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-07-09 21:57:46 -0400 |
| commit | 9e07258da097f539da03ace171372fc15effa1cb (patch) | |
| tree | d60f610d4a73e086c8fdb1db8174a05b3ea4c690 /test/farm/annotate/src | |
| parent | 88216e7d3f87babf1bb630598b6d926320b5fee0 (diff) | |
| download | python-coveragepy-9e07258da097f539da03ace171372fc15effa1cb.tar.gz | |
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.
Diffstat (limited to 'test/farm/annotate/src')
| -rw-r--r-- | test/farm/annotate/src/a/a.py | 4 | ||||
| -rw-r--r-- | test/farm/annotate/src/b/b.py | 3 |
2 files changed, 4 insertions, 3 deletions
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) |
