]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
pwclient: dict.iteritems() is deprecated in Python 3
authorBrian Norris <computersforpeace@gmail.com>
Fri, 16 Oct 2015 23:39:00 +0000 (16:39 -0700)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 20 Oct 2015 00:51:35 +0000 (01:51 +0100)
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>
patchwork/bin/pwclient

index d2b95e5d148d7a6f03cf37a4077d575fdc489a70..236b237ddeb32df9c51d06ea46f145e623812427 100755 (executable)
@@ -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):