This commit is contained in:
Raymond Hettinger 2016-03-13 00:12:49 -08:00
commit 5f6209a3c6
1 changed files with 1 additions and 1 deletions

View File

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