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