aboutsummaryrefslogtreecommitdiffstats
path: root/mgarepo
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-10-10 09:16:26 +0200
committerPapoteur <papoteur@mageialinux-online.org>2015-10-10 09:16:26 +0200
commit142d404aa8cffc9f4785e5347f26036463dedcd4 (patch)
treec58f4d5c692c945eb10180baadb123d2c3762ad3 /mgarepo
parent3e3e90e699192df60eeafb2ec7a9e087aff97195 (diff)
downloadmgarepo-142d404aa8cffc9f4785e5347f26036463dedcd4.tar
mgarepo-142d404aa8cffc9f4785e5347f26036463dedcd4.tar.gz
mgarepo-142d404aa8cffc9f4785e5347f26036463dedcd4.tar.bz2
mgarepo-142d404aa8cffc9f4785e5347f26036463dedcd4.tar.xz
mgarepo-142d404aa8cffc9f4785e5347f26036463dedcd4.zip
Apply 2to3-3.4
Diffstat (limited to 'mgarepo')
-rwxr-xr-xmgarepo14
1 files changed, 7 insertions, 7 deletions
diff --git a/mgarepo b/mgarepo
index 8c01db4..0329522 100755
--- a/mgarepo
+++ b/mgarepo
@@ -39,13 +39,13 @@ command_aliases = {"import": "putsrpm", "commit": "ci", "checkout": "co"}
def plugin_help(opt, val, parser, mode):
if parser is None:
prog = sys.argv[0]
- print "Use %s --help-plugin <plugin name>" % prog
- print "Available plugins:"
- print
+ print("Use %s --help-plugin <plugin name>" % prog)
+ print("Available plugins:")
+ print()
for name in plugins.list():
- print name
+ print(name)
else:
- print plugins.help(parser)
+ print(plugins.help(parser))
raise SystemExit
def parse_options():
@@ -79,14 +79,14 @@ def dispatch_command(command, argv, debug=0):
except (ImportError, AttributeError):
etype, exc, tb = sys.exc_info()
if tb.tb_next is None and not debug:
- raise Error, "invalid command '%s'" % command
+ raise Error("invalid command '%s'" % command)
raise
command_module.main()
if __name__ == "__main__":
try:
plugins.load()
- except Error, e:
+ except Error as e:
sys.stderr.write("plugin initialization error: %s\n" % e)
sys.exit(1)
config.set("global", "mgarepo-cmd", sys.argv[0])