aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-10-16 16:39:00 -0700
committerStephen Finucane <stephen.finucane@intel.com>2015-10-20 01:51:35 +0100
commit8bd696b94ae486d0908d26e95edb757d3d674916 (patch)
tree6da78533f4f11094c3535b3f48d9d6c634c7e33c
parent0c8fb45ae28e837200cf75caf2aff0ec7b19e292 (diff)
downloadpatchwork-8bd696b94ae486d0908d26e95edb757d3d674916.tar
patchwork-8bd696b94ae486d0908d26e95edb757d3d674916.tar.gz
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 <computersforpeace@gmail.com> Reviewed-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Stephen Finucane <stephen.finucane@intel.com>
-rwxr-xr-xpatchwork/bin/pwclient2
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient
index d2b95e5..236b237 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):