Commit 3104c156 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash in CalculateQualifiedNamesTransform

parent 6b1a58c9
...@@ -1870,8 +1870,11 @@ class CalculateQualifiedNamesTransform(EnvTransform): ...@@ -1870,8 +1870,11 @@ class CalculateQualifiedNamesTransform(EnvTransform):
self.visitchildren(node) self.visitchildren(node)
return node return node
def visit_FuncDefNode(self, node): def visit_DefNode(self, node):
self._set_qualname(node, node.name) self._set_qualname(node, node.name)
return self.visit_FuncDefNode(node)
def visit_FuncDefNode(self, node):
orig_qualified_name = self.qualified_name[:] orig_qualified_name = self.qualified_name[:]
if getattr(node, 'name', None) == '<lambda>': if getattr(node, 'name', None) == '<lambda>':
self.qualified_name.append('<lambda>') self.qualified_name.append('<lambda>')
......
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