From 4809f6d39c5fdff08cb5c9db969dbe854ba788d0 Mon Sep 17 00:00:00 2001 From: "Jurjen N. E. Bos" Date: Tue, 5 Dec 2023 19:44:06 +0100 Subject: [PATCH] Minor stylistic edit to the grouper recipe (gh112759) (cherry picked from commit c2e2df83560a3d4cb602f6d57cb70ac8aad7f9e6) Co-authored-by: Jurjen N. E. Bos --- Doc/library/itertools.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 15b449d650512a..fc25e51678ac69 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -916,9 +916,9 @@ which incur interpreter overhead. args = [iter(iterable)] * n if incomplete == 'fill': return zip_longest(*args, fillvalue=fillvalue) - if incomplete == 'strict': + elif incomplete == 'strict': return zip(*args, strict=True) - if incomplete == 'ignore': + elif incomplete == 'ignore': return zip(*args) else: raise ValueError('Expected fill, strict, or ignore')