mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)
Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
7ddbaa7a1b
commit
03c8ddd9e9
24 changed files with 72 additions and 62 deletions
|
@ -40,7 +40,7 @@ def server(evt, buf, serv):
|
|||
evt.set()
|
||||
try:
|
||||
conn, addr = serv.accept()
|
||||
except socket.timeout:
|
||||
except TimeoutError:
|
||||
pass
|
||||
else:
|
||||
n = 500
|
||||
|
@ -193,7 +193,7 @@ def debugging_server(serv, serv_evt, client_evt):
|
|||
|
||||
n -= 1
|
||||
|
||||
except socket.timeout:
|
||||
except TimeoutError:
|
||||
pass
|
||||
finally:
|
||||
if not client_evt.is_set():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue