Skip to content

Commit

Permalink
polish exceptions and platforms (GH-9272)
Browse files Browse the repository at this point in the history
  • Loading branch information
willingc authored and 1st1 committed Sep 13, 2018
1 parent 01e0afa commit a3c8ba7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Doc/library/asyncio-exceptions.rst
Expand Up @@ -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::

Expand Down Expand Up @@ -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`.
Expand Down
9 changes: 5 additions & 4 deletions Doc/library/asyncio-platforms.rst
Expand Up @@ -9,7 +9,8 @@ Platforms Support
=================

The :mod:`asyncio` module has been designed to be portable,
but some platforms have subtle differences and limitations.
but some platforms have subtle differences and limitations
due to the platforms' underlying architecture and capabilities.


All Platforms
Expand All @@ -26,7 +27,7 @@ All event loops on Windows do not support the following methods:

* :meth:`loop.create_unix_connection` and
:meth:`loop.create_unix_server` are not supported.
The :data:`socket.AF_UNIX` socket family is specific to UNIX/
The :data:`socket.AF_UNIX` socket family is specific to UNIX.

* :meth:`loop.add_signal_handler` and
:meth:`loop.remove_signal_handler` are not supported.
Expand Down Expand Up @@ -66,8 +67,8 @@ Windows configuration.
Subprocess Support on Windows
-----------------------------

:class:`SelectorEventLoop` on Windows does not support subproceses,
so :class:`ProactorEventLoop` should be used instead::
:class:`SelectorEventLoop` on Windows does not support subproceses.
On Windows, :class:`ProactorEventLoop` should be used instead::

import asyncio

Expand Down

0 comments on commit a3c8ba7

Please sign in to comment.