fix most issues related to the py__call__ stuff and generalize it.
This commit is contained in:
1 parent
1e6a950aec
commit
373ff2c45a
3 files changed
+33
-20
No files matched your search
@@ -94,7 +94,7 @@ class GeneratorMethod(object):
|
||||
self._builtin_func = builtin_func
|
||||
self._generator = generator
|
||||
|
||||
def py__call__(self, params):
|
||||
def py__call__(self, evaluator, params):
|
||||
# TODO add TypeError if params are given.
|
||||
return self._generator.iter_content()
|
||||
|
||||
|
||||
Reference in new issue
Block a user