Skip to content
Snippets Groups Projects
Commit a75d2041 authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Fix missing formal parameter name.

parent a96a4983
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,8 @@ class Instance:
if not isinstance(val, ArrayValue):
raise InstanceTypeError(self, "entry of non-array")
try:
return Instance(ArrayValue(val[:index] + val[index+1:]), self.crumb)
return Instance(ArrayValue(val = val[:index] + val[index+1:]),
self.crumb)
except IndexError:
raise NonexistentInstance(self, "entry " + str(index)) from None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment