diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/exceptions.py | 3 | ||||
-rw-r--r-- | Lib/concurrent/futures/_base.py | 4 |
2 files changed, 2 insertions, 5 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): 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.""" |