1
0
forked from VimPlug/jedi

different dynamic approach to get params, works already really good!

This commit is contained in:
David Halter
2012-08-06 01:33:01 +02:00
parent ee798b03f2
commit 92bf995c3a
4 changed files with 83 additions and 37 deletions

View File

@@ -447,6 +447,8 @@ class Execution(Executable):
def _get_function_returns(self, evaluate_generator):
""" A normal Function execution """
for listener in self.base.listeners:
listener.execute(self.get_params())
func = self.base.get_decorated_func()
if func.is_generator and not evaluate_generator:
return [Generator(func, self.var_args)]