mirror of
https://github.com/python/cpython.git
synced 2025-11-08 17:41:42 +00:00
idlelib: replace 'while 1' with 'while True' (GH-94827)
(cherry picked from commit 6a15f918b5)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
0a51204cd0
commit
29fc20cdc0
6 changed files with 8 additions and 8 deletions
|
|
@ -237,9 +237,9 @@ def get_expression(self):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue