binman: Avoid changing a dict during iteration
authorSimon Glass <sjg@chromium.org>
Sat, 18 May 2019 04:00:45 +0000 (22:00 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
commit58632a7f44cb0aef2c5cd4ede966c89abc430968
treef64cfac9b3daf56eea842aa05c0f1ab4cd636906
parent3c47e4105e0b467938660a986c261f2db10a2edd
binman: Avoid changing a dict during iteration

This code works OK in Python 2 but Python 3 complains. Adjust it to avoid
deleting elements from a dict while iterating through it.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/control.py