From: Christian Herdtweck Date: Wed, 13 Jan 2016 16:12:18 +0000 (+0100) Subject: add from __future__ import print_function for compatibility in templates X-Git-Tag: v1.2~73 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=496960150e8f88b488ae7977f26160293c642b8e;p=pyi2ncommon add from __future__ import print_function for compatibility in templates --- diff --git a/template.py b/template.py index 1ad91c2..c89af30 100644 --- a/template.py +++ b/template.py @@ -34,6 +34,8 @@ in this docstring, but please keep it brief! .. codeauthor:: John Doe, john.doe@intra2net.com """ +from __future__ import print_function + THE_CONSTANT = None """ some constant with docstring *AFTER* the constant. Use this format! """ diff --git a/test/template.py b/test/template.py index 251e4de..3d80afa 100644 --- a/test/template.py +++ b/test/template.py @@ -9,6 +9,8 @@ For help see :py:mod:`unittest` .. codeauthor:: your name, your.name@intra2net.com """ +from __future__ import print_function + import unittest import module_name