Commit cb31016a authored by Stefan Behnel's avatar Stefan Behnel

undo while loop termination change - didn't consider "break" ...

parent a503f162
......@@ -2162,12 +2162,6 @@ class RemoveUnreachableCode(CythonTransform):
node.is_terminator = True
return node
def visit_WhileStatNode(self, node):
self.visitchildren(node)
if not node.condition:
node.is_terminator = True
return node
def visit_TryExceptStatNode(self, node):
self.visitchildren(node)
if node.body.is_terminator and node.else_clause:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment