summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Philippsen <nils@redhat.com>2015-11-12 13:27:37 +0100
committerNils Philippsen <nils@redhat.com>2015-11-12 13:27:37 +0100
commit590d4548dab462378c4b400420998fb2cc09b6f7 (patch)
treed257ee9f3ec398c41056ff7ce505eff583f5da50
parent81ef81c6288a320f7c9f9fd93c0b3f150b5184e8 (diff)
downloadpaste-git-py3k.tar.gz
Python 3: use compatible print syntax in example textpy3k
-rw-r--r--tests/test_template.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_template.txt b/tests/test_template.txt
index 45a85e2..f3466f2 100644
--- a/tests/test_template.txt
+++ b/tests/test_template.txt
@@ -97,8 +97,8 @@ in Python, but it's more useful in templates generally)::
... elif item == 'orange':
... assert loop.last
... if loop.first_group(lambda i: i[0].upper()):
- ... print '%s:' % item[0].upper()
- ... print loop.number, item
+ ... print('%s:' % item[0].upper())
+ ... print("%s %s" % (loop.number, item))
A:
1 apple
2 asparagus