[U-Boot] [PATCH v2 06/10] patman: Use items() to iterate over dictionaries

Simon Glass sjg at chromium.org
Thu Oct 6 04:03:01 CEST 2016


On 27 September 2016 at 11:55, Simon Glass <sjg at chromium.org> wrote:
> 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 this 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/patman/settings.py | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list