Commit 6fbd7741 authored by Victor Stinner's avatar Victor Stinner

Issue #25670: Remove duplicate getattr() from ast.NodeTransformer

parent 97cabb9f
......@@ -293,7 +293,6 @@ class NodeTransformer(NodeVisitor):
def generic_visit(self, node):
for field, old_value in iter_fields(node):
old_value = getattr(node, field, None)
if isinstance(old_value, list):
new_values = []
for value in old_value:
......
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