mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
polish exceptions and platforms (GH-9272)
This commit is contained in:
parent
01e0afa994
commit
a3c8ba7235
2 changed files with 8 additions and 6 deletions
|
@ -19,11 +19,12 @@ Exceptions
|
|||
|
||||
The operation has been cancelled.
|
||||
|
||||
This exception can be caught to perform custom operations on
|
||||
This exception can be caught to perform custom operations
|
||||
when asyncio Tasks are cancelled. In almost all situations the
|
||||
exception must always be re-raised.
|
||||
|
||||
.. note::
|
||||
|
||||
This exception is a subclass of :exc:`Exception`, so it can be
|
||||
accidentally suppressed by ``try..except`` block::
|
||||
|
||||
|
@ -54,7 +55,7 @@ Exceptions
|
|||
|
||||
.. exception:: SendfileNotAvailableError
|
||||
|
||||
The "sendfile" syscall for is not available for the given
|
||||
The "sendfile" syscall is not available for the given
|
||||
socket or file type.
|
||||
|
||||
A subclass of :exc:`RuntimeError`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue