compatibility with Python 2.6+ and Python 3.x

This commit is contained in:
Stefan Kögl
2011-06-23 17:40:32 +02:00
parent 02d1592cb2
commit 033c5f6ac9

View File

@@ -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)