diff --git a/Lib/ast.py b/Lib/ast.py index 03c30f66e91..017047275be 100644 --- a/Lib/ast.py +++ b/Lib/ast.py @@ -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: