use the more idomatic (and Py3k faster) while True

This commit is contained in:
Benjamin Peterson 2008-06-05 23:07:42 +00:00
parent 36281f6215
commit 0fe14383a8
1 changed files with 1 additions and 1 deletions

View File

@ -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: