Skip to content

Commit 28797c1

Browse files
clarify why we do this
1 parent a049173 commit 28797c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncstdlib/itertools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ async def _extend_buffer(self, next_node: "_TeeNode[T]") -> None:
395395
if not next_node:
396396
raise
397397
else:
398-
# seek the last node that needs to be filled
398+
# skip nodes that were filled in the meantime
399399
while next_node:
400400
_, next_node = next_node # type: ignore
401401
next_node[:] = next_value, []

0 commit comments

Comments
 (0)