mirror of
https://github.com/python/cpython.git
synced 2025-10-16 11:49:57 +00:00
Minor readability improvement to the factor() recipe (GH-102971)
This commit is contained in:
parent
b6132085ca
commit
16f6165b71
1 changed files with 1 additions and 1 deletions
|
@ -936,7 +936,7 @@ which incur interpreter overhead.
|
||||||
n = quotient
|
n = quotient
|
||||||
if n == 1:
|
if n == 1:
|
||||||
return
|
return
|
||||||
if n >= 2:
|
if n > 1:
|
||||||
yield n
|
yield n
|
||||||
|
|
||||||
def flatten(list_of_lists):
|
def flatten(list_of_lists):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue