mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -50,9 +50,7 @@ class CancelledError(Error):
|
|||
"""The Future was cancelled."""
|
||||
pass
|
||||
|
||||
class TimeoutError(Error):
|
||||
"""The operation exceeded the given deadline."""
|
||||
pass
|
||||
TimeoutError = TimeoutError # make local alias for the standard exception
|
||||
|
||||
class InvalidStateError(Error):
|
||||
"""The operation is not allowed in this state."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue