[U-Boot] [PATCH v2 08/10] dtoc: Use items() to iterate over dictionaries in python 3.x

Simon Glass sjg at chromium.org
Tue Sep 27 19:55:23 CEST 2016


On 27 September 2016 at 09:03, Paul Burton <paul.burton at imgtec.com> wrote:
> 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 at imgtec.com>
>
> ---
>
> Changes in v2:
> - Just use items() for all python versions
>
>  tools/dtoc/dtoc.py         | 8 ++++----
>  tools/dtoc/fdt_fallback.py | 2 +-
>  2 files changed, 5 insertions(+), 5 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list