diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-06-05 23:07:42 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-06-05 23:07:42 (GMT) |
commit | 0fe14383a8576ee5eb4a6aa83c96484281b360fd (patch) | |
tree | 1c5aaa856f0693b1d4643fcd94b437fde705e1b2 | |
parent | 36281f62152f83bd7ab7b26167dd57c4d03826be (diff) | |
download | cpython-0fe14383a8576ee5eb4a6aa83c96484281b360fd.zip cpython-0fe14383a8576ee5eb4a6aa83c96484281b360fd.tar.gz cpython-0fe14383a8576ee5eb4a6aa83c96484281b360fd.tar.bz2 |
use the more idomatic (and Py3k faster) while True
-rw-r--r-- | Lib/tokenize.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |