D3323: py3: iterate over a copy of dict while changing it
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Apr 13 20:48:04 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3323
AFFECTED FILES
mercurial/color.py
CHANGE DETAILS
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):
To: pulkit, #hg-reviewers
Cc: mercurial-devel, spectral
More information about the Mercurial-devel
mailing list