summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/rpc.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2022-07-14 01:09:07 (GMT)
committerGitHub <noreply@github.com>2022-07-14 01:09:07 (GMT)
commit6a15f918b5a6fb5113d5332ebf27df1d5360e66c (patch)
treeb82734977ba3d3dd40fb17fe4ead332125b90dc6 /Lib/idlelib/rpc.py
parent967da5febbc77b36a5b14863e61db3a2d441a940 (diff)
downloadcpython-6a15f918b5a6fb5113d5332ebf27df1d5360e66c.zip
cpython-6a15f918b5a6fb5113d5332ebf27df1d5360e66c.tar.gz
cpython-6a15f918b5a6fb5113d5332ebf27df1d5360e66c.tar.bz2
idlelib: replace 'while 1' with 'while True' (#94827)
Diffstat (limited to 'Lib/idlelib/rpc.py')
-rw-r--r--Lib/idlelib/rpc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py
index 8efcf04..62eec84 100644
--- a/Lib/idlelib/rpc.py
+++ b/Lib/idlelib/rpc.py
@@ -307,7 +307,7 @@ class SocketIO:
self.debug("_getresponse:myseq:", myseq)
if threading.current_thread() is self.sockthread:
# this thread does all reading of requests or responses
- while 1:
+ while True:
response = self.pollresponse(myseq, wait)
if response is not None:
return response
@@ -417,7 +417,7 @@ class SocketIO:
self.responses and notify the owning thread.
"""
- while 1:
+ while True:
# send queued response if there is one available
try:
qmsg = response_queue.get(0)