]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Minor readability improvement to the factor() recipe (GH-102971)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Thu, 23 Mar 2023 19:46:15 +0000 (14:46 -0500)
committerGitHub <noreply@github.com>
Thu, 23 Mar 2023 19:46:15 +0000 (14:46 -0500)
Doc/library/itertools.rst

index 5daadfd3759f4bf7db60a7b21dd9d0ab5d4cf836..70e5b7905f20a98e9364fa9d4d71588cc2afd863 100644 (file)
@@ -936,7 +936,7 @@ which incur interpreter overhead.
                n = quotient
                if n == 1:
                    return
-       if n >= 2:
+       if n > 1:
            yield n
 
    def flatten(list_of_lists):