mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-32410: Make SendfileNotAvailableError exception public (#5243)
This commit is contained in:
parent
2507e29a9e
commit
7464e87a65
6 changed files with 42 additions and 25 deletions
|
@ -3,7 +3,7 @@
|
|||
__all__ = (
|
||||
'AbstractEventLoopPolicy',
|
||||
'AbstractEventLoop', 'AbstractServer',
|
||||
'Handle', 'TimerHandle',
|
||||
'Handle', 'TimerHandle', 'SendfileNotAvailableError',
|
||||
'get_event_loop_policy', 'set_event_loop_policy',
|
||||
'get_event_loop', 'set_event_loop', 'new_event_loop',
|
||||
'get_child_watcher', 'set_child_watcher',
|
||||
|
@ -20,6 +20,14 @@ import threading
|
|||
from . import format_helpers
|
||||
|
||||
|
||||
class SendfileNotAvailableError(RuntimeError):
|
||||
"""Sendfile syscall is not available.
|
||||
|
||||
Raised if OS does not support senfile syscall for given socket or
|
||||
file type.
|
||||
"""
|
||||
|
||||
|
||||
class Handle:
|
||||
"""Object returned by callback registration methods."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue