Skip to content

Commit 5ac0e11

Browse files
committed
fix ivar reference
1 parent fb4ee8d commit 5ac0e11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/lib-graalpython/itertools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def __next__(self):
469469
if self.func is None:
470470
self.total += value
471471
else:
472-
self.total = self.func(total, value)
472+
self.total = self.func(self.total, value)
473473
return self.total
474474

475475

@@ -888,7 +888,7 @@ def __next__(self):
888888
# raise this. The shortest one stops first.
889889
while True:
890890
next_item = next(self.data)
891-
next_selector = next(selectors)
891+
next_selector = next(self.selectors)
892892
if next_selector:
893893
return next_item
894894

0 commit comments

Comments
 (0)