idlelib: replace 'while 1' with 'while True' (GH-94827)

(cherry picked from commit 6a15f918b5)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2022-07-13 18:27:20 -07:00 committed by GitHub
parent 8a01502e2d
commit 915fb4f441
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View file

@ -1301,7 +1301,7 @@ def smart_backspace_event(self, event):
want = ((have - 1) // self.indentwidth) * self.indentwidth
# Debug prompt is multilined....
ncharsdeleted = 0
while 1:
while True:
chars = chars[:-1]
ncharsdeleted = ncharsdeleted + 1
have = len(chars.expandtabs(tabwidth))