From: Brian Norris Date: Fri, 16 Oct 2015 23:39:00 +0000 (-0700) Subject: pwclient: dict.iteritems() is deprecated in Python 3 X-Git-Tag: v1.0.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bd696b94ae486d0908d26e95edb757d3d674916;p=thirdparty%2Fpatchwork.git pwclient: dict.iteritems() is deprecated in Python 3 Just use dict.items(), since there are few fields and we don't really care about the extra copying. Signed-off-by: Brian Norris Reviewed-by: Mike Frysinger Reviewed-by: Stephen Finucane --- diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient index d2b95e5d..236b237d 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):