fix indexing issues for multiple index options
This commit is contained in:
1 parent
4c849f5969
commit
aba4a16ae3
7 files changed
+26
-9
No files matched your search
@@ -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)]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user