diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-02-19 11:29:43 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 12:39:00 +0100 |
commit | 0a4725c045a5a55592dafd41c6ef6f9bab4791cd (patch) | |
tree | ca9f3e8bea00d455e8f8b2c21bba947adc16b976 /gbp/scripts/supercommand.py | |
parent | f7afe1d06c56748c6d9bfcae6166beba21bb3e53 (diff) |
Don't use print as a statement
via
2to3-3.4 -w -f print .
to work towards python3 support
Gbp-Dch: Ignore
Diffstat (limited to 'gbp/scripts/supercommand.py')
-rw-r--r-- | gbp/scripts/supercommand.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gbp/scripts/supercommand.py b/gbp/scripts/supercommand.py index 83c8446..a120ae5 100644 --- a/gbp/scripts/supercommand.py +++ b/gbp/scripts/supercommand.py @@ -17,6 +17,8 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """Supercommand for all gbp commands""" +from __future__ import print_function + import glob import os import re @@ -34,7 +36,7 @@ def sanitize(cmd): return cmd.replace('-', '_') def usage(): - print """ + print(""" Usage: gbp <command> [<args>] @@ -46,7 +48,7 @@ The most commonly used commands are: import-dscs - import multiple Debian source packages Use '--list-cmds' to list all available commands. -""" +""") def version(prog): try: @@ -125,10 +127,10 @@ def supercommand(argv=None): try: module = import_command(cmd) except ImportError as e: - print >>sys.stderr, "'%s' is not a valid command." % cmd + print("'%s' is not a valid command." % cmd, file=sys.stderr) usage() if '--verbose' in args: - print >>sys.stderr, e + print(e, file=sys.stderr) return 2 return module.main(args) |