diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2018-09-11 17:13:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 17:13:04 (GMT) |
commit | 0baa72f4b2e7185298d09cf64c7b591efcd22af0 (patch) | |
tree | 20ee600a314eb8f65863edca9f3c90d88cfd9a02 /Lib/asyncio/events.py | |
parent | 7c7605ff1133cf757cac428c483827f666c7c827 (diff) | |
download | cpython-0baa72f4b2e7185298d09cf64c7b591efcd22af0.zip cpython-0baa72f4b2e7185298d09cf64c7b591efcd22af0.tar.gz cpython-0baa72f4b2e7185298d09cf64c7b591efcd22af0.tar.bz2 |
bpo-34622: Extract asyncio exceptions into a separate module (GH-9141)
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r-- | Lib/asyncio/events.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 58a60a0..163b868 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -3,7 +3,7 @@ __all__ = ( 'AbstractEventLoopPolicy', 'AbstractEventLoop', 'AbstractServer', - 'Handle', 'TimerHandle', 'SendfileNotAvailableError', + 'Handle', 'TimerHandle', 'get_event_loop_policy', 'set_event_loop_policy', 'get_event_loop', 'set_event_loop', 'new_event_loop', 'get_child_watcher', 'set_child_watcher', @@ -19,14 +19,7 @@ import sys import threading from . import format_helpers - - -class SendfileNotAvailableError(RuntimeError): - """Sendfile syscall is not available. - - Raised if OS does not support sendfile syscall for given socket or - file type. - """ +from . import exceptions class Handle: |