diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-06-05 22:39:34 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-06-05 22:39:34 +0000 |
commit | 30dc7b8ce27451f7d06099d985d93c09d55567ad (patch) | |
tree | f9823781ef63724775b8a61e592efee94bddc70c /Lib/tokenize.py | |
parent | 59475e97399fa7691fab6d01cd8df7db70b0dba6 (diff) | |
download | cpython-git-30dc7b8ce27451f7d06099d985d93c09d55567ad.tar.gz |
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 0f68b4034b..8d2b4aaba2 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: |