From d83cb8ac62edcfdf4f8a2ce7b9e646636174ac03 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Mar 28 2022 12:14:38 +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 354cd1a..b20e458 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)