未验证 提交 fccbc485 编写于 作者: C Chen Weihang 提交者: GitHub

remove redundant visit func, test=develop (#23877)

上级 f77d0afc
......@@ -142,15 +142,6 @@ class BasicApiTransformer(gast.NodeTransformer):
self.visit(self.root)
return self.wrapper_root
def visit_FunctionDef(self, node):
self.generic_visit(node)
if hasattr(node, 'decorator_list'):
decorator_list = [
d for d in node.decorator_list if d.id not in DECORATOR_NAMES
]
node.decorator_list = decorator_list
return node
def visit_Assign(self, node):
if self._update_class_node_dict(node):
return None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册