mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
idlelib: replace 'while 1' with 'while True' (GH-94827)
(cherry picked from commit 6a15f918b5
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
0a51204cd0
commit
29fc20cdc0
6 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue