From 08beabe847d0e542d0b3b13dd84f29717bddc988 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Mar 30 2017 13:25:51 +0000 Subject: use print function everywhere --- diff --git a/cli/koji b/cli/koji index 859758f..88c5c22 100755 --- a/cli/koji +++ b/cli/koji @@ -7231,23 +7231,23 @@ def handle_save_failed_tree(options, session, args): except koji.GenericError as e: m = str(e) if 'Only failed tasks can upload their buildroots.' in m: - print _("Only failed tasks can upload their buildroots.") + print(_("Only failed tasks can upload their buildroots.")) elif 'tasks can upload their buildroots (Task' in m: - print _("Task of this type has disabled support for uploading" \ - " buildroot. (configurable on hub)") + print(_("Task of this type has disabled support for uploading" \ + " buildroot. (configurable on hub)")) elif 'Invalid method' in m: - print _("* The save_failed_tree plugin appears to not be installed" \ - " on the koji hub. Please contact the administrator.") + print(_("* The save_failed_tree plugin appears to not be installed" \ + " on the koji hub. Please contact the administrator.")) if logger.isEnabledFor(logging.DEBUG): tb_str = ''.join(traceback.format_exception(*sys.exc_info())) logger.debug(tb_str) return 1 except koji.ActionNotAllowed: - print _("Only task owner or admin can run this task.") + print(_("Only task owner or admin can run this task.")) return 1 if not opts.quiet: - print "Created task:", task_id - print "Task info: %s/taskinfo?taskID=%s" % (options.weburl, task_id) + print("Created task:", task_id) + print("Task info: %s/taskinfo?taskID=%s" % (options.weburl, task_id)) if opts.nowait: return