diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2014-03-04 09:29:46 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-03-04 09:29:46 +0200 |
commit | 230bf69325eef9c58a24db614c2a104638b6fbeb (patch) | |
tree | 5f531c755d247f2c805d1eaca367e679a7fc4f48 /node_classes.py | |
parent | 2e0df240db0cf677b0821371af7c2dfc021452ab (diff) | |
download | astroid-git-230bf69325eef9c58a24db614c2a104638b6fbeb.tar.gz |
Drop yield_from API, add a new YieldFrom node instead.
--HG--
branch : yield_from
Diffstat (limited to 'node_classes.py')
-rw-r--r-- | node_classes.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/node_classes.py b/node_classes.py index 3873127e..01dc8d92 100644 --- a/node_classes.py +++ b/node_classes.py @@ -886,11 +886,10 @@ class With(BlockRangeMixIn, AssignTypeMixin, Statement): class Yield(NodeNG): """class representing a Yield node""" _astroid_fields = ('value',) - value = _from = None + value = None - @property - def yield_from(self): - return self._from +class YieldFrom(Yield): + """ Class representing a YieldFrom node. """ # constants ############################################################## |