summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/history.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2022-07-14 01:09:07 (GMT)
committerGitHub <noreply@github.com>2022-07-14 01:09:07 (GMT)
commit6a15f918b5a6fb5113d5332ebf27df1d5360e66c (patch)
treeb82734977ba3d3dd40fb17fe4ead332125b90dc6 /Lib/idlelib/history.py
parent967da5febbc77b36a5b14863e61db3a2d441a940 (diff)
downloadcpython-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.py2
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()