summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-05 23:07:42 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-05 23:07:42 (GMT)
commit0fe14383a8576ee5eb4a6aa83c96484281b360fd (patch)
tree1c5aaa856f0693b1d4643fcd94b437fde705e1b2
parent36281f62152f83bd7ab7b26167dd57c4d03826be (diff)
downloadcpython-0fe14383a8576ee5eb4a6aa83c96484281b360fd.zip
cpython-0fe14383a8576ee5eb4a6aa83c96484281b360fd.tar.gz
cpython-0fe14383a8576ee5eb4a6aa83c96484281b360fd.tar.bz2
use the more idomatic (and Py3k faster) while True
-rw-r--r--Lib/tokenize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tokenize.py b/Lib/tokenize.py
index fdc5cbf..31366de 100644
--- a/Lib/tokenize.py
+++ b/Lib/tokenize.py
@@ -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: