summaryrefslogtreecommitdiff
path: root/Lib/idlelib/hyperparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/hyperparser.py')
-rw-r--r--Lib/idlelib/hyperparser.py4
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