summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-03-13 08:12:31 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-03-13 08:12:31 (GMT)
commita503f7092f5eca6b65ff0beaf7ee6b428e0e81a0 (patch)
tree802895714af0189e4d8fac9ca8ca93cfae3b3d2e /Doc
parent8dea74f12aab7d0690d98037824c4a6d5d5cd1f7 (diff)
downloadcpython-a503f7092f5eca6b65ff0beaf7ee6b428e0e81a0.zip
cpython-a503f7092f5eca6b65ff0beaf7ee6b428e0e81a0.tar.gz
cpython-a503f7092f5eca6b65ff0beaf7ee6b428e0e81a0.tar.bz2
Minor recipe edit: convert "while 1" to "while True".
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/itertools.rst2
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