diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-17 11:59:54 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-17 11:59:54 +0100 |
commit | d223b425ef20dbe133971dd364991623692945a6 (patch) | |
tree | 53f45f65aa4e2b5f8854d8b5f5ef64302ca9e26c /protocols.py | |
parent | 5be7030e9f546b88e0204fbac7de2419e8fd1754 (diff) | |
download | astroid-git-d223b425ef20dbe133971dd364991623692945a6.tar.gz |
bug fix
--HG--
branch : _ast_compat
Diffstat (limited to 'protocols.py')
-rw-r--r-- | protocols.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols.py b/protocols.py index a0e23fa7..9f1834ec 100644 --- a/protocols.py +++ b/protocols.py @@ -345,7 +345,7 @@ nodes.Class.callable = callable_true def infer_call_result_function(self, caller, context=None): """infer what a function is returning when called""" if self.is_generator(): - yield Generator(self) + yield nodes.Generator(self) return returns = self.nodes_of_class(nodes.Return, skip_klass=nodes.Function) for returnnode in returns: |