Port Python sources to Python 3 syntax

This commit is contained in:
Mario Fetka
2026-07-15 19:41:36 +02:00
parent 4adfadfbed
commit 27a70c1332
95 changed files with 1103 additions and 1113 deletions
+4 -4
View File
@@ -58,7 +58,7 @@ if __name__ == '__main__':
try:
options.authpass = getpass.getpass(_("Enter password for %s: ") % options.authuser)
except KeyboardInterrupt:
print
print()
sys.exit(1)
log.debug("running command: %s", str(command))
@@ -75,14 +75,14 @@ if __name__ == '__main__':
try:
ret = command.run(options, args)
except KeyboardInterrupt:
print
print()
sys.exit(1)
except SystemExit:
raise
except Exception, e:
except Exception as e:
log.debug("Error at bongo-admintool main()", exc_info=1)
ret = 1
print _("ERROR: %s") % str(e)
print(_("ERROR: %s") % str(e))
if ret is None:
sys.exit(0)