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/history.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/history.py')
-rw-r--r-- | Lib/idlelib/history.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/history.py b/Lib/idlelib/history.py index 100f505..5a9b32a 100644 --- a/Lib/idlelib/history.py +++ b/Lib/idlelib/history.py @@ -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() |