summaryrefslogtreecommitdiff
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
parent81a37d033676e3dccaab611bb723cf9eb08ec460 (diff)
downloadastroid-git-d4cc195b05243be776eb40464a61d4fc376728ff.tar.gz
[py3.3] don't crash on 'yield from' nodes. Closes #124360
--HG-- branch : stable
-rw-r--r--ChangeLog2
-rw-r--r--rebuilder.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 79e931a7..fb34bb9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,7 +2,7 @@ Change log for the astng package
================================
--
-
+ * #124360 [py3.3]: Don't crash on 'yield from' nodes
* #123062 [pylint-brain]: Use correct names for keywords for urlparse
* #123056 [pylint-brain]: Add missing methods for hashlib
* #123068: Fix inference for generator methods to correctly handle yields
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