summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/history.py
diff options
context:
space:
mode:
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()