Minor recipe edit: convert "while 1" to "while True".
This commit is contained in:
parent
8dea74f12a
commit
a503f7092f
|
@ -806,7 +806,7 @@ which incur interpreter overhead.
|
||||||
try:
|
try:
|
||||||
if first is not None:
|
if first is not None:
|
||||||
yield first() # For database APIs needing an initial cast to db.first()
|
yield first() # For database APIs needing an initial cast to db.first()
|
||||||
while 1:
|
while True:
|
||||||
yield func()
|
yield func()
|
||||||
except exception:
|
except exception:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue