From 3ce84d461db5383b79d6940a27ce672932c9ac78 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 9 May 2021 12:59:34 +0200 Subject: [PATCH] - python3 raises error when dictionary is changed during loop --- TLD_Builder/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TLD_Builder/install.py b/TLD_Builder/install.py index 9cfb94f..c8eb543 100644 --- a/TLD_Builder/install.py +++ b/TLD_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