use the more idomatic (and Py3k faster) while True
This commit is contained in:
parent
36281f6215
commit
0fe14383a8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue