Skip to content

Commit c2e2df8

Browse files
authored
Minor stylistic edit to the grouper recipe (gh112759)
1 parent 11d88a1 commit c2e2df8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/itertools.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,9 @@ which incur interpreter overhead.
916916
args = [iter(iterable)] * n
917917
if incomplete == 'fill':
918918
return zip_longest(*args, fillvalue=fillvalue)
919-
if incomplete == 'strict':
919+
elif incomplete == 'strict':
920920
return zip(*args, strict=True)
921-
if incomplete == 'ignore':
921+
elif incomplete == 'ignore':
922922
return zip(*args)
923923
else:
924924
raise ValueError('Expected fill, strict, or ignore')

0 commit comments

Comments
 (0)