Skip to content

Commit 8b4b504

Browse files
jnebaisk
authored andcommitted
Minor stylistic edit to the grouper recipe (gh112759)
1 parent 118f222 commit 8b4b504

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/itertools.rst

+2-2
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)