diff options
Diffstat (limited to 'scoped_nodes.py')
-rw-r--r-- | scoped_nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scoped_nodes.py b/scoped_nodes.py index 9c23ebfa..46815ac3 100644 --- a/scoped_nodes.py +++ b/scoped_nodes.py @@ -608,7 +608,7 @@ class Function(Statement, Lambda): """return true if this is a generator function""" # XXX should be flagged, not computed try: - return self.nodes_of_class(Yield, skip_klass=Function).next() + return self.nodes_of_class(Yield, skip_klass=(Function, Lambda)).next() except StopIteration: return False |