Kaydet (Commit) 30dc7b8c authored tarafından Benjamin Peterson's avatar Benjamin Peterson

use the more idomatic while True

üst 59475e97
...@@ -281,7 +281,7 @@ def generate_tokens(readline): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment