From 129e2f73ba7bf70cc60fa88dbd5fab5cc1820cba Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 9 May 2021 14:09:37 +0200 Subject: [PATCH] - python3 raises error when dictionary is changed during loop --- PLD_Builder/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLD_Builder/install.py b/PLD_Builder/install.py index 91a115e..bed6c1d 100644 --- a/PLD_Builder/install.py +++ b/PLD_Builder/install.py @@ -23,7 +23,7 @@ def close_killset(killset): return True rx = re.compile(r'^.* marks (?P[^\s]+?)-[^-]+-[^-]+\s.*$') errors = "" - for p in k: + for p in list(k): if p in hold: del killset[p] errors += "cannot remove %s because it's crucial\n" % p -- 2.44.0