mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +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
|
contline = None
|
||||||
indents = [0]
|
indents = [0]
|
||||||
|
|
||||||
while 1: # loop over lines in stream
|
while True: # loop over lines in stream
|
||||||
try:
|
try:
|
||||||
line = readline()
|
line = readline()
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue