diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-13 18:27:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-13 18:27:20 -0700 |
| commit | 915fb4f4418de5150121ed16ed88c2e11f60283b (patch) | |
| tree | 3bac4354dabd4e077fe75a2f68c41c83e570a8af /Lib/idlelib/hyperparser.py | |
| parent | 8a01502e2da19cce1db4ebb791a065298451931d (diff) | |
| download | cpython-git-915fb4f4418de5150121ed16ed88c2e11f60283b.tar.gz | |
idlelib: replace 'while 1' with 'while True' (GH-94827)
(cherry picked from commit 6a15f918b5a6fb5113d5332ebf27df1d5360e66c)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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 |
