revert 63965 for preformance reasons
authorBenjamin Peterson <benjamin@python.org>
Thu, 5 Jun 2008 23:02:33 +0000 (23:02 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 5 Jun 2008 23:02:33 +0000 (23:02 +0000)
Lib/tokenize.py

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