mercurial/color.py
changeset 37662 5340daa85c62
parent 37084 f0b6fbea00cf
child 37664 483cafc3762a
--- 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):