summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-11-20 07:49:58 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-11-20 07:49:58 (GMT)
commit6fbd7741db5cb6db4cd49722d42f20d2b1d7dc0a (patch)
tree29a1fc1122e7e38c1038abadd07bef1729b0eb61 /Lib
parent97cabb9fa5bd257aceae724f4727fe54580c4e9f (diff)
downloadcpython-6fbd7741db5cb6db4cd49722d42f20d2b1d7dc0a.zip
cpython-6fbd7741db5cb6db4cd49722d42f20d2b1d7dc0a.tar.gz
cpython-6fbd7741db5cb6db4cd49722d42f20d2b1d7dc0a.tar.bz2
Issue #25670: Remove duplicate getattr() from ast.NodeTransformer
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ast.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/ast.py b/Lib/ast.py
index 03c30f6..0170472 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: