mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
bpo-42413: Replace concurrent.futures.TimeoutError
and asyncio.TimeoutError
with builtin TimeoutError
(GH-30197)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
9b52920173
commit
da4b214304
7 changed files with 26 additions and 25 deletions
|
@ -10,8 +10,7 @@ class CancelledError(BaseException):
|
|||
"""The Future or Task was cancelled."""
|
||||
|
||||
|
||||
class TimeoutError(Exception):
|
||||
"""The operation exceeded the given deadline."""
|
||||
TimeoutError = TimeoutError # make local alias for the standard exception
|
||||
|
||||
|
||||
class InvalidStateError(Exception):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue