Mercurial > hg-stable
changeset 37662:5340daa85c62
py3: iterate over a copy of dict while changing it
Differential Revision: https://phab.mercurial-scm.org/D3323
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 14 Apr 2018 01:58:44 +0530 |
parents | afe624d78d43 |
children | fc114a16a484 |
files | mercurial/color.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):