commit | 0a95448559e24570595dbc93e36aa9c7f129bd65 | [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 | 44fc9baa10f5be4d9366bccc51543f76e8aea784 [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>