summaryrefslogtreecommitdiff
path: root/Lib/idlelib/searchengine.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2022-07-13 21:09:07 -0400
committerGitHub <noreply@github.com>2022-07-13 21:09:07 -0400
commit6a15f918b5a6fb5113d5332ebf27df1d5360e66c (patch)
treeb82734977ba3d3dd40fb17fe4ead332125b90dc6 /Lib/idlelib/searchengine.py
parent967da5febbc77b36a5b14863e61db3a2d441a940 (diff)
downloadcpython-git-6a15f918b5a6fb5113d5332ebf27df1d5360e66c.tar.gz
idlelib: replace 'while 1' with 'while True' (#94827)
Diffstat (limited to 'Lib/idlelib/searchengine.py')
-rw-r--r--Lib/idlelib/searchengine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/searchengine.py b/Lib/idlelib/searchengine.py
index eddef581ab..0684142f43 100644
--- a/Lib/idlelib/searchengine.py
+++ b/Lib/idlelib/searchengine.py
@@ -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: