mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +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
|
@ -65,7 +65,7 @@ class History:
|
|||
self.text.bell()
|
||||
return
|
||||
nprefix = len(prefix)
|
||||
while 1:
|
||||
while True:
|
||||
pointer += -1 if reverse else 1
|
||||
if pointer < 0 or pointer >= nhist:
|
||||
self.text.bell()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue