forked from VimPlug/jedi
further progress in changing to py__call__
This commit is contained in:
@@ -94,7 +94,8 @@ class GeneratorMethod(object):
|
||||
self._builtin_func = builtin_func
|
||||
self._generator = generator
|
||||
|
||||
def execute(self):
|
||||
def py__call__(self, params):
|
||||
# TODO add TypeError if params are given.
|
||||
return self._generator.iter_content()
|
||||
|
||||
def __getattr__(self, name):
|
||||
|
||||
Reference in New Issue
Block a user