dict.items() and friends are iterators/views in Python 3. You
aren't allowed to mutate the underlying dictionary when iterating
on these views. So iterate over a copy of things.
Details
Details
- Reviewers
pulkit durin42 - Group Reviewers
hg-reviewers - Commits
- rHGc02771617a70: py3: avoid changing dictionary during iteration
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.