From: Raymond Hettinger Date: Sun, 13 Mar 2016 08:12:31 +0000 (-0800) Subject: Minor recipe edit: convert "while 1" to "while True". X-Git-Tag: v3.6.0a1~490^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a503f7092f5eca6b65ff0beaf7ee6b428e0e81a0;p=thirdparty%2FPython%2Fcpython.git Minor recipe edit: convert "while 1" to "while True". --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index a9d10736d1cc..758e49b282a3 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