diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2021-12-19 11:22:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-19 11:22:40 (GMT) |
commit | da4b214304df38cf1831071804a2b83938f95923 (patch) | |
tree | 9823fdba80b7228c6069824c89a3113d215fd6c3 /Lib/asyncio | |
parent | 9b52920173735ac609664c6a3a3021d24a95a092 (diff) | |
download | cpython-da4b214304df38cf1831071804a2b83938f95923.zip cpython-da4b214304df38cf1831071804a2b83938f95923.tar.gz cpython-da4b214304df38cf1831071804a2b83938f95923.tar.bz2 |
bpo-42413: Replace `concurrent.futures.TimeoutError` and `asyncio.TimeoutError` with builtin `TimeoutError` (GH-30197)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/exceptions.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/asyncio/exceptions.py b/Lib/asyncio/exceptions.py index f07e448..c764c9f 100644 --- a/Lib/asyncio/exceptions.py +++ b/Lib/asyncio/exceptions.py @@ -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): |