From 6a15f918b5a6fb5113d5332ebf27df1d5360e66c Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 13 Jul 2022 21:09:07 -0400 Subject: idlelib: replace 'while 1' with 'while True' (#94827) --- Lib/idlelib/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/idlelib/history.py') diff --git a/Lib/idlelib/history.py b/Lib/idlelib/history.py index 100f505256..5a9b32aaf6 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() -- cgit v1.2.1