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

index 0f68b4034bae2952a8135eadaa9006cddcf53df1..8d2b4aaba2b9553f7895cec7647323819154d68f 100644 (file)
@@ -281,7 +281,7 @@ def generate_tokens(readline):
     contline = None
     indents = [0]
 
-    while 1:                                   # loop over lines in stream
+    while True:                       # loop over lines in stream
         try:
             line = readline()
         except StopIteration: