From: Benjamin Peterson Date: Thu, 5 Jun 2008 22:39:34 +0000 (+0000) Subject: use the more idomatic while True X-Git-Tag: v2.6b1~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30dc7b8ce27451f7d06099d985d93c09d55567ad;p=python use the more idomatic while True --- diff --git a/Lib/tokenize.py b/Lib/tokenize.py index 0f68b4034b..8d2b4aaba2 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -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: