Kill the surviving endless-wait mutants
This commit is contained in:
@@ -45,12 +45,12 @@ def loops(simples: list[Simple]) -> list[list[Simple]]:
|
||||
open_loops: list[list[Simple]] = []
|
||||
closed = []
|
||||
for simple in (Simple(core(simple.words), simple.directory) for simple in simples):
|
||||
first = simple.words[0] if simple.words else ""
|
||||
first = simple.words[:1]
|
||||
for loop in open_loops:
|
||||
loop.append(simple)
|
||||
if first in LOOPS:
|
||||
if first and first[0] in LOOPS:
|
||||
open_loops.append([simple])
|
||||
elif first == "done" and open_loops:
|
||||
elif first == ["done"] and open_loops:
|
||||
closed.append(open_loops.pop())
|
||||
return closed + open_loops
|
||||
|
||||
|
||||
Reference in New Issue
Block a user