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>
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):