1
0
forked from VimPlug/jedi

fix indexing issues for multiple index options

This commit is contained in:
Dave Halter
2014-06-27 11:23:46 +02:00
parent 4c849f5969
commit aba4a16ae3
7 changed files with 26 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ def builtins_reversed(evaluator, obj, params):
# would fail in certain cases like `reversed(x).__iter__` if we
# just returned the result directly.
stmts = [FakeStatement([r]) for r in rev]
objects = (FakeArray(stmts, objects[0].parent),)
objects = (iterable.Array(evaluator, FakeArray(stmts, objects[0].parent)),)
return [er.Instance(evaluator, obj, objects)]