summaryrefslogtreecommitdiffstats
path: root/conf.py
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2021-06-04 16:50:46 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-01-10 20:42:16 +0100
commitd0579b7e5da331576b80b9d35eb62994075bc939 (patch)
treee925558aabd8a69217e828c46eb4111d16f00fd4 /conf.py
parent7750671314e6da19f65aaa95bb1095963fdc175a (diff)
downloadpykolab-d0579b7e5da331576b80b9d35eb62994075bc939.tar.gz
[Python 3] Use print() as function instead of statement
Summary: print() has been a function since Python 2.6; the old behaviour was dropped in Python 3.0. To use the named file argument in Python 2, we need to import print_function from the __future__ module. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3229
Diffstat (limited to 'conf.py')
-rwxr-xr-xconf.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/conf.py b/conf.py
index 8e5ef43..9a111b6 100755
--- a/conf.py
+++ b/conf.py
@@ -22,6 +22,8 @@
Kolab configuration utility.
"""
+from __future__ import print_function
+
import logging
import os
import sys
@@ -33,8 +35,8 @@ from pykolab.translate import _
try:
import pykolab.logger
except ImportError, e:
- print >> sys.stderr, _("Cannot load pykolab/logger.py:")
- print >> sys.stderr, "%s" % e
+ print(_("Cannot load pykolab/logger.py:"), file=sys.stderr)
+ print("%s" % e, file=sys.stderr)
sys.exit(1)
import pykolab