mirror of
https://github.com/python/cpython.git
synced 2025-10-01 21:02:15 +00:00
[3.11] Minor readability improvement to the factor() recipe (GH-102971) (GH-102972)
This commit is contained in:
parent
202e16ea05
commit
60b2b58f87
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue