commit | 0fe14383a8576ee5eb4a6aa83c96484281b360fd | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Jun 05 23:07:42 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Jun 05 23:07:42 2008 +0000 |
tree | 1c5aaa856f0693b1d4643fcd94b437fde705e1b2 | |
parent | 36281f62152f83bd7ab7b26167dd57c4d03826be [diff] [blame] |
use the more idomatic (and Py3k faster) while True
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 @@ 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: