From 496960150e8f88b488ae7977f26160293c642b8e Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 13 Jan 2016 17:12:18 +0100 Subject: [PATCH] add from __future__ import print_function for compatibility in templates --- template.py | 2 ++ test/template.py | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) 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 -- 1.7.1