idlelib: replace 'while 1' with 'while True' (#94827)

This commit is contained in:
Terry Jan Reedy 2022-07-13 21:09:07 -04:00 committed by GitHub
parent 967da5febb
commit 6a15f918b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View file

@ -165,7 +165,7 @@ class SearchEngine:
wrapped = 0
startline = line
chars = text.get("%d.0" % line, "%d.0" % (line+1))
while 1:
while True:
m = search_reverse(prog, chars[:-1], col)
if m:
if ok or m.start() < col: