mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +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
|
@ -463,7 +463,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
|||
self.rpcclt.listening_sock.settimeout(10)
|
||||
try:
|
||||
self.rpcclt.accept()
|
||||
except socket.timeout:
|
||||
except TimeoutError:
|
||||
self.display_no_subprocess_error()
|
||||
return None
|
||||
self.rpcclt.register("console", self.tkconsole)
|
||||
|
@ -498,7 +498,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
|||
self.spawn_subprocess()
|
||||
try:
|
||||
self.rpcclt.accept()
|
||||
except socket.timeout:
|
||||
except TimeoutError:
|
||||
self.display_no_subprocess_error()
|
||||
return None
|
||||
self.transfer_path(with_cwd=with_cwd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue