]> granicus.if.org Git - python/commitdiff
Minor recipe edit: convert "while 1" to "while True".
authorRaymond Hettinger <python@rcn.com>
Sun, 13 Mar 2016 08:12:31 +0000 (00:12 -0800)
committerRaymond Hettinger <python@rcn.com>
Sun, 13 Mar 2016 08:12:31 +0000 (00:12 -0800)
Doc/library/itertools.rst

index a9d10736d1cc9502cfd0d3e92d7a5adf45286522..758e49b282a3cab901f24fea0f6fcad0f5aad0e2 100644 (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