diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2022-07-13 21:09:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 21:09:07 -0400 |
commit | 6a15f918b5a6fb5113d5332ebf27df1d5360e66c (patch) | |
tree | b82734977ba3d3dd40fb17fe4ead332125b90dc6 /Lib/idlelib/hyperparser.py | |
parent | 967da5febbc77b36a5b14863e61db3a2d441a940 (diff) | |
download | cpython-git-6a15f918b5a6fb5113d5332ebf27df1d5360e66c.tar.gz |
idlelib: replace 'while 1' with 'while True' (#94827)
Diffstat (limited to 'Lib/idlelib/hyperparser.py')
-rw-r--r-- | Lib/idlelib/hyperparser.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |