summaryrefslogtreecommitdiff
path: root/rebuilder.py
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <amunroe@yelp.com>2014-04-08 11:55:18 -0700
committerEevee (Alex Munroe) <amunroe@yelp.com>2014-07-01 17:33:00 -0700
commitbbc107fb2afed934eef85c3682aa4b3a20cbe450 (patch)
treee68d5ad87b3088cd43249f2f9f4079730ae1a6a9 /rebuilder.py
parent68efc111d35ab4a1bf31e0c95ee188e019bf3e37 (diff)
downloadastroid-git-bbc107fb2afed934eef85c3682aa4b3a20cbe450.tar.gz
Miscellaneous node rebuilder microoptimizations.
Diffstat (limited to 'rebuilder.py')
-rw-r--r--rebuilder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rebuilder.py b/rebuilder.py
index cef00f8c..c581eb98 100644
--- a/rebuilder.py
+++ b/rebuilder.py
@@ -292,7 +292,8 @@ class TreeRebuilder(object):
newnode.starargs = self.visit(node.starargs, newnode)
if node.kwargs is not None:
newnode.kwargs = self.visit(node.kwargs, newnode)
- newnode.args.extend(self.visit(child, newnode) for child in node.keywords)
+ for child in node.keywords:
+ newnode.args.append(self.visit(child, newnode))
return newnode
def visit_class(self, node, parent):