[Python-3000-checkins] r63968 - python/branches/py3k/Lib/tokenize.py
benjamin.peterson
python-3000-checkins at python.org
Fri Jun 6 01:07:42 CEST 2008
Author: benjamin.peterson
Date: Fri Jun 6 01:07:42 2008
New Revision: 63968
Log:
use the more idomatic (and Py3k faster) while True
Modified:
python/branches/py3k/Lib/tokenize.py
Modified: python/branches/py3k/Lib/tokenize.py
==============================================================================
--- python/branches/py3k/Lib/tokenize.py (original)
+++ python/branches/py3k/Lib/tokenize.py Fri Jun 6 01:07:42 2008
@@ -337,7 +337,7 @@
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:
More information about the Python-3000-checkins
mailing list