mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
use the more idomatic while True
This commit is contained in:
parent
59475e9739
commit
30dc7b8ce2
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue