mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
idlelib: replace 'while 1' with 'while True' (#94827)
This commit is contained in:
parent
967da5febb
commit
6a15f918b5
6 changed files with 8 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue