Commit 8d1f3cb6 authored by Vitja Makarov's avatar Vitja Makarov

Don't mark function if no entry found

--HG--
extra : transplant_source : %B7i%C3h-%DD%E1d%14B%C3%924%07%2B%83%EF%F3%98s
parent 5515459e
...@@ -626,7 +626,8 @@ class CreateControlFlowGraph(CythonTransform): ...@@ -626,7 +626,8 @@ class CreateControlFlowGraph(CythonTransform):
entry = node.entry entry = node.entry
if entry.is_anonymous: if entry.is_anonymous:
entry = self.env.lookup(node.name) 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) return self.visit_FuncDefNode(node)
def visit_GeneratorBodyDefNode(self, 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