Commit 2c2c0aaf authored by Vitja Makarov's avatar Vitja Makarov

InlineDefNodeCalls: handle cf_state is None case

parent 3d13ae3a
...@@ -1653,7 +1653,8 @@ class InlineDefNodeCalls(Visitor.CythonTransform): ...@@ -1653,7 +1653,8 @@ class InlineDefNodeCalls(Visitor.CythonTransform):
function_name = node.function function_name = node.function
if not function_name.is_name: if not function_name.is_name:
return node return node
if not function_name.cf_state.is_single: if (function_name.cf_state is None or
not function_name.cf_state.is_single):
return node return node
function = function_name.cf_state.one().rhs function = function_name.cf_state.one().rhs
if not isinstance(function, ExprNodes.PyCFunctionNode): if not isinstance(function, ExprNodes.PyCFunctionNode):
......
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