From 44f1eb9d11e3f0d57861a70b3a1a245a3f385d4d Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Mar 24 2022 12:00:01 +0000 Subject: PR#3300: Same format output for list-builroot with verbose for py3/py2 Merges #3300 https://pagure.io/koji/pull-request/3300 Fixes: #3299 https://pagure.io/koji/issue/3299 CLI list-buildroot with verbose print different format of message on py3 and py2 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index da673aa..1a4665d 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -2798,7 +2798,7 @@ def anon_handle_list_buildroot(goptions, session, args): order = sorted([(fmt % x, x) for x in data]) for nvra, rinfo in order: if options.verbose and rinfo.get('is_update'): - print(nvra, "[update]") + print("%s [update]" % nvra) else: print(nvra)