summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2021-12-19 11:22:40 (GMT)
committerGitHub <noreply@github.com>2021-12-19 11:22:40 (GMT)
commitda4b214304df38cf1831071804a2b83938f95923 (patch)
tree9823fdba80b7228c6069824c89a3113d215fd6c3 /Lib/asyncio
parent9b52920173735ac609664c6a3a3021d24a95a092 (diff)
downloadcpython-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.py3
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):