diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | rebuilder.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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 |