Commit a503f709 authored by Raymond Hettinger's avatar Raymond Hettinger

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

parent 8dea74f1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment