summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKartheek Lenkala <lkarthee@gmail.com>2015-03-22 18:16:32 +0530
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2015-03-22 14:25:15 +0100
commit29b08c85a206199094070205383e44e690ec44cf (patch)
treefcedeb82e793d35f360c9274e3e055227247f759 /examples
parent599c1360bc42ae9ca21525299d92c6cd9ba887b5 (diff)
downloadjinja2-29b08c85a206199094070205383e44e690ec44cf.tar.gz
change py2 print statements to py3
Diffstat (limited to 'examples')
-rw-r--r--examples/basic/test.py2
-rw-r--r--examples/basic/test_filter_and_linestatements.py2
-rw-r--r--examples/basic/test_loop_filter.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/basic/test.py b/examples/basic/test.py
index b62c84f..8f7dde7 100644
--- a/examples/basic/test.py
+++ b/examples/basic/test.py
@@ -24,4 +24,4 @@ env = Environment(loader=DictLoader({
tmpl = env.get_template("child.html")
-print tmpl.render()
+print(tmpl.render())
diff --git a/examples/basic/test_filter_and_linestatements.py b/examples/basic/test_filter_and_linestatements.py
index c9e8f95..79e0a4b 100644
--- a/examples/basic/test_filter_and_linestatements.py
+++ b/examples/basic/test_filter_and_linestatements.py
@@ -22,4 +22,4 @@ tmpl = env.from_string("""\
% endfilter
""")
-print tmpl.render(seq=range(10))
+print(tmpl.render(seq=range(10)))
diff --git a/examples/basic/test_loop_filter.py b/examples/basic/test_loop_filter.py
index 49c2efc..0469d04 100644
--- a/examples/basic/test_loop_filter.py
+++ b/examples/basic/test_loop_filter.py
@@ -9,4 +9,4 @@ tmpl = Environment().from_string("""\
if condition: {{ 1 if foo else 0 }}
""")
-print tmpl.render(foo=True)
+print(tmpl.render(foo=True))