From 535e6df5251c2cc433e5c76e55b44f1832451d4e Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 12 Nov 2015 13:27:37 +0100 Subject: Python 3: use compatible print syntax in example text --- tests/test_template.txt | 4 ++-- 1 file 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 -- cgit v1.2.1