]> granicus.if.org Git - python/commitdiff
use the more idomatic (and Py3k faster) while True
authorBenjamin Peterson <benjamin@python.org>
Thu, 5 Jun 2008 23:07:42 +0000 (23:07 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 5 Jun 2008 23:07:42 +0000 (23:07 +0000)
Lib/tokenize.py

index fdc5cbfb416380b0bf355b51dc64ef7dfeb20574..31366deb1f579b7fbdbd3c046526154a1b6cb29b 100644 (file)
@@ -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: