diff options
author | Raymond Hettinger <python@rcn.com> | 2016-03-13 08:12:31 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-03-13 08:12:31 (GMT) |
commit | a503f7092f5eca6b65ff0beaf7ee6b428e0e81a0 (patch) | |
tree | 802895714af0189e4d8fac9ca8ca93cfae3b3d2e | |
parent | 8dea74f12aab7d0690d98037824c4a6d5d5cd1f7 (diff) | |
download | cpython-a503f7092f5eca6b65ff0beaf7ee6b428e0e81a0.zip cpython-a503f7092f5eca6b65ff0beaf7ee6b428e0e81a0.tar.gz cpython-a503f7092f5eca6b65ff0beaf7ee6b428e0e81a0.tar.bz2 |
Minor recipe edit: convert "while 1" to "while True".
-rw-r--r-- | Doc/library/itertools.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index a9d1073..758e49b 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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 |