[Python-checkins] cpython (3.5): Minor recipe edit: convert "while 1" to "while True".

raymond.hettinger python-checkins at python.org
Sun Mar 13 04:13:07 EDT 2016


https://hg.python.org/cpython/rev/4d797a45309c
changeset:   100513:4d797a45309c
branch:      3.5
parent:      100510:cecd39887faa
user:        Raymond Hettinger <python at rcn.com>
date:        Sun Mar 13 00:12:31 2016 -0800
summary:
  Minor recipe edit:  convert "while 1" to "while True".

files:
  Doc/library/itertools.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -806,7 +806,7 @@
        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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list