Skip to content

Commit b4b8177

Browse files
rhettingermiss-islington
authored andcommitted
Minor readability improvement to the factor() recipe (pythonGH-102971)
(cherry picked from commit 16f6165) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
1 parent 202e16e commit b4b8177

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Doc/library/itertools.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ which incur interpreter overhead.
925925
n = quotient
926926
if n == 1:
927927
return
928-
if n >= 2:
928+
if n > 1:
929929
yield n
930930

931931
def flatten(list_of_lists):

0 commit comments

Comments
 (0)