diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2022-07-14 01:09:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-14 01:09:07 (GMT) |
commit | 6a15f918b5a6fb5113d5332ebf27df1d5360e66c (patch) | |
tree | b82734977ba3d3dd40fb17fe4ead332125b90dc6 /Lib/idlelib/editor.py | |
parent | 967da5febbc77b36a5b14863e61db3a2d441a940 (diff) | |
download | cpython-6a15f918b5a6fb5113d5332ebf27df1d5360e66c.zip cpython-6a15f918b5a6fb5113d5332ebf27df1d5360e66c.tar.gz cpython-6a15f918b5a6fb5113d5332ebf27df1d5360e66c.tar.bz2 |
idlelib: replace 'while 1' with 'while True' (#94827)
Diffstat (limited to 'Lib/idlelib/editor.py')
-rw-r--r-- | Lib/idlelib/editor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index 6c52efd..859a288 100644 --- a/Lib/idlelib/editor.py +++ b/Lib/idlelib/editor.py @@ -1301,7 +1301,7 @@ class EditorWindow: 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)) |