summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/rpc.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-14 01:27:20 (GMT)
committerGitHub <noreply@github.com>2022-07-14 01:27:20 (GMT)
commit915fb4f4418de5150121ed16ed88c2e11f60283b (patch)
tree3bac4354dabd4e077fe75a2f68c41c83e570a8af /Lib/idlelib/rpc.py
parent8a01502e2da19cce1db4ebb791a065298451931d (diff)
downloadcpython-915fb4f4418de5150121ed16ed88c2e11f60283b.zip
cpython-915fb4f4418de5150121ed16ed88c2e11f60283b.tar.gz
cpython-915fb4f4418de5150121ed16ed88c2e11f60283b.tar.bz2
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/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)