[Python-checkins] cpython (3.5): Issue #25670: Remove duplicate getattr() from ast.NodeTransformer

victor.stinner python-checkins at python.org
Fri Nov 20 02:51:14 EST 2015


https://hg.python.org/cpython/rev/7789f338447f
changeset: 99221:7789f338447f
branch: 3.5
parent: 99218:515f76bf1254
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Nov 20 08:49:58 2015 +0100
summary:
 Issue #25670: Remove duplicate getattr() from ast.NodeTransformer
files:
 Lib/ast.py | 1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/Lib/ast.py b/Lib/ast.py
--- a/Lib/ast.py
+++ b/Lib/ast.py
@@ -293,7 +293,6 @@
 
 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:
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /