diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-06-05 22:39:34 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-06-05 22:39:34 (GMT) |
commit | 30dc7b8ce27451f7d06099d985d93c09d55567ad (patch) | |
tree | f9823781ef63724775b8a61e592efee94bddc70c /Lib/tokenize.py | |
parent | 59475e97399fa7691fab6d01cd8df7db70b0dba6 (diff) | |
download | cpython-30dc7b8ce27451f7d06099d985d93c09d55567ad.zip cpython-30dc7b8ce27451f7d06099d985d93c09d55567ad.tar.gz cpython-30dc7b8ce27451f7d06099d985d93c09d55567ad.tar.bz2 |
use the more idomatic while True
Diffstat (limited to 'Lib/tokenize.py')
-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 0f68b40..8d2b4aa 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -281,7 +281,7 @@ def generate_tokens(readline): contline = None indents = [0] - while 1: # loop over lines in stream + while True: # loop over lines in stream try: line = readline() except StopIteration: |