]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- python3 raises error when dictionary is changed during loop
authorMarcin Krol <hawk@tld-linux.org>
Sun, 9 May 2021 12:09:37 +0000 (14:09 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 9 May 2021 12:09:37 +0000 (14:09 +0200)
PLD_Builder/install.py

index 91a115eb2124257d437bd1f1ddab42fc95d90a53..bed6c1ddde5bb46cfd4a62fd85519b165280c3ab 100644 (file)
@@ -23,7 +23,7 @@ def close_killset(killset):
         return True
     rx = re.compile(r'^.* marks (?P<name>[^\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
This page took 0.205949 seconds and 4 git commands to generate.