Patchwork D3323: py3: iterate over a copy of dict while changing it

login
register
mail settings
Submitter phabricator
Date April 13, 2018, 10:22 p.m.
Message ID <f4efcaafccb60970e37e94ca3d2320fa@localhost.localdomain>
Download mbox | patch
Permalink /patch/30943/
State Not Applicable
Headers show

Comments

phabricator - April 13, 2018, 10:22 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5340daa85c62: py3: iterate over a copy of dict while changing it (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3323?vs=8143&id=8198

REVISION DETAIL
  https://phab.mercurial-scm.org/D3323

AFFECTED FILES
  mercurial/color.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, spectral, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/color.py b/mercurial/color.py
--- a/mercurial/color.py
+++ b/mercurial/color.py
@@ -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):