From: Benjamin Peterson Date: Thu, 5 Jun 2008 23:07:42 +0000 (+0000) Subject: use the more idomatic (and Py3k faster) while True X-Git-Tag: v3.0b1~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fe14383a8576ee5eb4a6aa83c96484281b360fd;p=python use the more idomatic (and Py3k faster) while True --- diff --git a/Lib/tokenize.py b/Lib/tokenize.py index fdc5cbfb41..31366deb1f 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -337,7 +337,7 @@ def _tokenize(readline, encoding): if encoding is not None: yield (ENCODING, encoding, (0, 0), (0, 0), '') - while 1: # loop over lines in stream + while True: # loop over lines in stream try: line = readline() except StopIteration: