Commit ae00ae99 authored by Vitja Makarov's avatar Vitja Makarov

Don't mark function if no entry found

parent 2439267d
......@@ -620,7 +620,8 @@ class CreateControlFlowGraph(CythonTransform):
entry = node.entry
if entry.is_anonymous:
entry = self.env.lookup(node.name)
self.flow.mark_assignment(node, object_expr, entry)
if entry:
self.flow.mark_assignment(node, object_expr, entry)
return self.visit_FuncDefNode(node)
def visit_GeneratorBodyDefNode(self, node):
......
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