mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #25670: Remove duplicate getattr() from ast.NodeTransformer
This commit is contained in:
parent
97cabb9fa5
commit
6fbd7741db
1 changed files with 0 additions and 1 deletions
|
@ -293,7 +293,6 @@ class NodeTransformer(NodeVisitor):
|
||||||
|
|
||||||
def generic_visit(self, node):
|
def generic_visit(self, node):
|
||||||
for field, old_value in iter_fields(node):
|
for field, old_value in iter_fields(node):
|
||||||
old_value = getattr(node, field, None)
|
|
||||||
if isinstance(old_value, list):
|
if isinstance(old_value, list):
|
||||||
new_values = []
|
new_values = []
|
||||||
for value in old_value:
|
for value in old_value:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue