bpo-15999: Always pass bool instead of int to socket.setblocking(). (GH-15621)

This commit is contained in:
Serhiy Storchaka 2019-09-01 12:12:52 +03:00 committed by GitHub
parent eb8974616b
commit 5eca7f3f38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 18 deletions

View file

@ -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()