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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30dc7b8ce27451f7d06099d985d93c09d55567ad;p=thirdparty%2FPython%2Fcpython.git use the more idomatic while True --- diff --git a/Lib/tokenize.py b/Lib/tokenize.py index 0f68b4034bae..8d2b4aaba2b9 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: