[Python-checkins] r63965 - python/trunk/Lib/tokenize.py

benjamin.peterson python-checkins at python.org
Fri Jun 6 00:39:34 CEST 2008


Author: benjamin.peterson
Date: Fri Jun  6 00:39:34 2008
New Revision: 63965

Log:
use the more idomatic while True


Modified:
   python/trunk/Lib/tokenize.py

Modified: python/trunk/Lib/tokenize.py
==============================================================================
--- python/trunk/Lib/tokenize.py	(original)
+++ python/trunk/Lib/tokenize.py	Fri Jun  6 00:39:34 2008
@@ -281,7 +281,7 @@
     contline = None
     indents = [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-checkins mailing list