Yield expressions are now separate form ReturnStmt.

This commit is contained in:
Dave Halter committed 2014-10-29 18:54:05 +01:00
1 parent 71c3d34965
commit f09ff04fcc
3 files changed
+15 -5

No files matched your search

+1 -1
View File
@@ -512,7 +512,7 @@ class Function(use_metaclass(CachedMetaClass, Wrapper)):
@Python3Method
def py__call__(self, evaluator, params):
if self.is_generator:
if self.base.is_generator():
return [iterable.Generator(evaluator, self, params)]
else:
return FunctionExecution(evaluator, self, params).get_return_types()