Commit 331ef9d0 authored by Stefan Behnel's avatar Stefan Behnel

repair compiler crash for fused cpdef methods

parent e6161510
......@@ -1952,8 +1952,7 @@ class CalculateQualifiedNamesTransform(EnvTransform):
def visit_PyCFunctionNode(self, node):
orig_qualified_name = self.qualified_name[:]
if node.def_node.is_wrapper and self.qualified_name:
assert self.qualified_name[-1] == '<locals>', self.qualified_name
if node.def_node.is_wrapper and self.qualified_name and self.qualified_name[-1] == '<locals>':
self.qualified_name.pop()
self._set_qualname(node)
else:
......
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