mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Minor recipe edit: convert "while 1" to "while True".
This commit is contained in:
parent
8dea74f12a
commit
a503f7092f
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ which incur interpreter overhead.
|
|||
try:
|
||||
if first is not None:
|
||||
yield first() # For database APIs needing an initial cast to db.first()
|
||||
while 1:
|
||||
while True:
|
||||
yield func()
|
||||
except exception:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue