diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2022-07-14 01:09:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-14 01:09:07 (GMT) |
commit | 6a15f918b5a6fb5113d5332ebf27df1d5360e66c (patch) | |
tree | b82734977ba3d3dd40fb17fe4ead332125b90dc6 /Lib/idlelib/rpc.py | |
parent | 967da5febbc77b36a5b14863e61db3a2d441a940 (diff) | |
download | cpython-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.py | 4 |
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) |