summaryrefslogtreecommitdiff
path: root/rebuilder.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2013-03-27 16:25:20 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2013-03-27 16:25:20 +0100
commitd4cc195b05243be776eb40464a61d4fc376728ff (patch)
tree56d0f13f156999b762c97c1ff4f5bc777eeed059 /rebuilder.py
parent81a37d033676e3dccaab611bb723cf9eb08ec460 (diff)
downloadastroid-git-d4cc195b05243be776eb40464a61d4fc376728ff.tar.gz
[py3.3] don't crash on 'yield from' nodes. Closes #124360
--HG-- branch : stable
Diffstat (limited to 'rebuilder.py')
-rw-r--r--rebuilder.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rebuilder.py b/rebuilder.py
index 5e2ed99f..01bb2045 100644
--- a/rebuilder.py
+++ b/rebuilder.py
@@ -879,6 +879,8 @@ class TreeRebuilder3k(TreeRebuilder):
newnode.set_line_info(newnode.last_child())
return newnode
+ def visit_yieldfrom(self, node, parent):
+ return self.visit_yield(node, parent)
if sys.version_info >= (3, 0):
TreeRebuilder = TreeRebuilder3k