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/hyperparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/idlelib/hyperparser.py') diff --git a/Lib/idlelib/hyperparser.py b/Lib/idlelib/hyperparser.py index 77baca782b..76144ee8fb 100644 --- a/Lib/idlelib/hyperparser.py +++ b/Lib/idlelib/hyperparser.py @@ -237,9 +237,9 @@ class HyperParser: last_identifier_pos = pos postdot_phase = True - while 1: + while True: # Eat whitespaces, comments, and if postdot_phase is False - a dot - while 1: + while True: if pos>brck_limit and rawtext[pos-1] in self._whitespace_chars: # Eat a whitespace pos -= 1 -- cgit v1.2.1