diff options
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) |