HomePhabricator

py3: use list() to get a list of items using dict.items()

Authored by pulkit.

Description

py3: use list() to get a list of items using dict.items()

dict.items() on Python 3 returns a generator over the values of the dictionary,
hence we can't delete elements while iterating over dict.items() in Python 3.

Differential Revision: https://phab.mercurial-scm.org/D1799

Details