From 033c5f6ac9778c6c968578cc348889eb58d30be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Thu, 23 Jun 2011 17:40:32 +0200 Subject: [PATCH] compatibility with Python 2.6+ and Python 3.x --- tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests.py b/tests.py index 5fe7beb..5b1d17c 100755 --- a/tests.py +++ b/tests.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +from __future__ import print_function import doctest import unittest import sys @@ -37,7 +38,7 @@ if coverage is not None: coverage.erase() if coverage is None: - print >>sys.stderr, """ + print(""" No coverage reporting done (Python module "coverage" is missing) Please install the python-coverage package to get coverage reporting. - """ + """, file=sys.stderr)