From 915fb4f4418de5150121ed16ed88c2e11f60283b Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 13 Jul 2022 18:27:20 -0700 Subject: idlelib: replace 'while 1' with 'while True' (GH-94827) (cherry picked from commit 6a15f918b5a6fb5113d5332ebf27df1d5360e66c) Co-authored-by: Terry Jan Reedy --- 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