1
0
forked from VimPlug/jedi

Fix an issue with combined reversed and yield without for loops.

This commit is contained in:
Dave Halter
2015-11-10 09:37:07 +01:00
parent 9f82cce3bb
commit 498e24df94
3 changed files with 20 additions and 9 deletions

View File

@@ -77,6 +77,7 @@ def argument_clinic(string, want_obj=False, want_scope=False, want_arguments=Fal
def f(func):
def wrapper(evaluator, obj, arguments):
debug.dbg('builtin start %s' % obj, color='MAGENTA')
try:
lst = list(arguments.eval_argument_clinic(clinic_args))
except ValueError:
@@ -90,6 +91,8 @@ def argument_clinic(string, want_obj=False, want_scope=False, want_arguments=Fal
if want_arguments:
kwargs['arguments'] = arguments
return func(evaluator, *lst, **kwargs)
finally:
debug.dbg('builtin end', color='MAGENTA')
return wrapper
return f