diff options
| author | Barry Warsaw | 2014-04-28 11:23:35 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-04-28 11:23:35 -0400 |
| commit | d4d71f71f08d6d440b17482eecc5472dcfe6cbae (patch) | |
| tree | 71f08b3d60f698883294eaa6d1bf366a095da011 /src/mailman/bin/runner.py | |
| parent | 7536530dcd8d6303c0a869e8c9c2cb2517b9b018 (diff) | |
| download | mailman-d4d71f71f08d6d440b17482eecc5472dcfe6cbae.tar.gz mailman-d4d71f71f08d6d440b17482eecc5472dcfe6cbae.tar.zst mailman-d4d71f71f08d6d440b17482eecc5472dcfe6cbae.zip | |
Diffstat (limited to 'src/mailman/bin/runner.py')
| -rw-r--r-- | src/mailman/bin/runner.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman/bin/runner.py b/src/mailman/bin/runner.py index c5040e3e3..76da0364f 100644 --- a/src/mailman/bin/runner.py +++ b/src/mailman/bin/runner.py @@ -17,7 +17,7 @@ """The runner process.""" -from __future__ import absolute_import, unicode_literals +from __future__ import absolute_import, print_function, unicode_literals __metaclass__ = type __all__ = [ @@ -82,7 +82,8 @@ def make_runner(name, slice, range, once=False): if os.environ.get('MAILMAN_UNDER_MASTER_CONTROL') is not None: # Exit with SIGTERM exit code so the master watcher won't try to # restart us. - print >> sys.stderr, _('Cannot import runner module: $class_path') + print(_('Cannot import runner module: $class_path'), + file=sys.stderr) traceback.print_exc() sys.exit(signal.SIGTERM) else: @@ -190,7 +191,7 @@ def main(): for shortname in sorted(descriptions): classname = descriptions[shortname] name = (' ' * (longest - len(shortname))) + shortname - print _('$name runs $classname') + print(_('$name runs $classname')) sys.exit(0) runner = make_runner(*args.runner, once=args.once) |
