From 0fe14383a8576ee5eb4a6aa83c96484281b360fd Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 5 Jun 2008 23:07:42 +0000 Subject: use the more idomatic (and Py3k faster) while True --- Lib/tokenize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tokenize.py b/Lib/tokenize.py index fdc5cbf..31366de 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: -- cgit v0.12