]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Minor readability improvement to the factor() recipe (GH-102971) (GH-102972)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Mar 2023 19:56:35 +0000 (12:56 -0700)
committerGitHub <noreply@github.com>
Thu, 23 Mar 2023 19:56:35 +0000 (14:56 -0500)
Doc/library/itertools.rst

index e1ffd39b1bd815050b7f4be4849ac14aa1020a8c..2196e53502f5a4491398a7fd9f35da1a510e9953 100644 (file)
@@ -925,7 +925,7 @@ which incur interpreter overhead.
                n = quotient
                if n == 1:
                    return
-       if n >= 2:
+       if n > 1:
            yield n
 
    def flatten(list_of_lists):