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

Simon Glass sjg at chromium.org
Tue Sep 27 02:33:16 CEST 2016


On 26 September 2016 at 08:30, 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. Convert the code
> to attempt to use iteritems() to be efficient on python 2.x, but use
> items() when that fails on python 3.x.
>
> Signed-off-by: Paul Burton <paul.burton at imgtec.com>
> ---
>
>  tools/dtoc/dtoc.py         | 24 ++++++++++++++++++++----
>  tools/dtoc/fdt_fallback.py |  8 +++++++-
>  2 files changed, 27 insertions(+), 5 deletions(-)

Similar comment to previous patch...


More information about the U-Boot mailing list