mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +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 @@ def start_subprocess(self):
|
|||
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 @@ def restart_subprocess(self, with_cwd=False, filename=''):
|
|||
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