summaryrefslogtreecommitdiffstats
path: root/Lib/concurrent
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/concurrent
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/concurrent')
-rw-r--r--Lib/concurrent/futures/_base.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/concurrent/futures/_base.py b/Lib/concurrent/futures/_base.py
index 6095026..b033739 100644
--- a/Lib/concurrent/futures/_base.py
+++ b/Lib/concurrent/futures/_base.py
@@ -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."""