#10777: fix iteration over dict keys while mutating the dict.
3 files changed