Just use dict.items(), since there are few fields and we don't really care about the extra copying.
Signed-off-by: Brian Norris <computersforpe...@gmail.com> Reviewed-by: Mike Frysinger <vap...@chromium.org> --- v2: unchanged patchwork/bin/pwclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient index d2b95e5d148d..236b237ddeb3 100755 --- a/patchwork/bin/pwclient +++ b/patchwork/bin/pwclient @@ -237,7 +237,7 @@ def action_info(rpc, patch_id): s = "Information for patch id %d" % (patch_id) print(s) print('-' * len(s)) - for key, value in sorted(patch.iteritems()): + for key, value in sorted(patch.items()): print("- %- 14s: %s" % (key, unicode(value).encode("utf-8"))) def action_get(rpc, patch_id): -- 2.6.0.rc2.230.g3dd15c0 _______________________________________________ Patchwork mailing list Patchwork@lists.ozlabs.org https://lists.ozlabs.org/listinfo/patchwork