Minor recipe edit: convert "while 1" to "while True".

This commit is contained in:
Raymond Hettinger 2016-03-13 00:12:31 -08:00
parent 8dea74f12a
commit a503f7092f
1 changed files with 1 additions and 1 deletions

View File

@ -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