# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1523651324 -19800 # Node ID 5340daa85c62dfd00f945b4260d654bf0a4dbe5d # Parent afe624d78d4363c17592298674e81e745213abdc py3: iterate over a copy of dict while changing it Differential Revision: https://phab.mercurial-scm.org/D3323 diff -r afe624d78d43 -r 5340daa85c62 mercurial/color.py --- a/mercurial/color.py Sat Apr 14 00:56:44 2018 +0530 +++ b/mercurial/color.py Sat Apr 14 01:58:44 2018 +0530 @@ -168,7 +168,7 @@ ui._terminfoparams.clear() return - for key, (b, e, c) in ui._terminfoparams.items(): + for key, (b, e, c) in ui._terminfoparams.copy().items(): if not b: continue if not c and not curses.tigetstr(e):