Skip to content

Commit 8bd696b

Browse files
computersforpeacestephenfin
authored andcommitted
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 <[email protected]> Reviewed-by: Mike Frysinger <[email protected]> Reviewed-by: Stephen Finucane <[email protected]>
1 parent 0c8fb45 commit 8bd696b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patchwork/bin/pwclient

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def action_info(rpc, patch_id):
237237
s = "Information for patch id %d" % (patch_id)
238238
print(s)
239239
print('-' * len(s))
240-
for key, value in sorted(patch.iteritems()):
240+
for key, value in sorted(patch.items()):
241241
print("- %- 14s: %s" % (key, unicode(value).encode("utf-8")))
242242

243243
def action_get(rpc, patch_id):

0 commit comments

Comments
 (0)