Skip to content

Commit

Permalink
Upgrade template renderer to Python 3. (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpeshansky authored Jun 9, 2020
1 parent 1b0d737 commit 0f2f5bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/render_templates.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3

# Copyright 2015 Google Inc. All Rights Reserved.
#
Expand All @@ -20,7 +20,7 @@
Example usage:
cd etc/collectd.d; \
for f in *.conf; do \
python ../../templates/render_templates.py $f.jinja > $f; \
python3 ../../templates/render_templates.py $f.jinja > $f; \
done
"""

Expand All @@ -34,4 +34,4 @@
lstrip_blocks=True,
extensions=['jinja2.ext.do'])

print env.get_template(sys.argv[1]).render()
print(env.get_template(sys.argv[1]).render())

0 comments on commit 0f2f5bb

Please sign in to comment.