mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-15999: Always pass bool instead of int to socket.setblocking(). (GH-15621)
This commit is contained in:
parent
eb8974616b
commit
5eca7f3f38
7 changed files with 18 additions and 18 deletions
|
@ -225,7 +225,7 @@ class TestThreadedServer(SocketThread):
|
|||
def run(self):
|
||||
try:
|
||||
with self._sock:
|
||||
self._sock.setblocking(0)
|
||||
self._sock.setblocking(False)
|
||||
self._run()
|
||||
finally:
|
||||
self._s1.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue