Kaydet (Commit) 0fe14383 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

use the more idomatic (and Py3k faster) while True

üst 36281f62
......@@ -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:
......
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