use the more idomatic while True

This commit is contained in:
Benjamin Peterson 2008-06-05 22:39:34 +00:00
parent 59475e9739
commit 30dc7b8ce2

View file

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