commit | 4ae6549f8e1cd31076c6dbabef568689fc313a13 | [log] [tgz] |
---|---|---|
author | Paul Burton <paul.burton@imgtec.com> | Tue Sep 27 16:03:56 2016 +0100 |
committer | sjg <sjg@chromium.org> | Sun Oct 09 09:30:32 2016 -0600 |
tree | b71cc4593f137e4441b9a0c53df64dd1f44aae67 | |
parent | f5d44b9bae64d4fc347c537e6d5f13d630eb858d [diff] |
dtoc: Use items() to iterate over dictionaries in python 3.x In python 3.x the iteritems() method has been removed from dictionaries, and the items() method does effectively the same thing. On python 2.x using items() is a little less efficient since it involves copying data, but as speed isn't a concern in the affected code switch to using items() anyway for simplicity. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>