Skip to content

Commit a3c8ba7

Browse files
willingc1st1
authored andcommitted
polish exceptions and platforms (GH-9272)
1 parent 01e0afa commit a3c8ba7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Doc/library/asyncio-exceptions.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ Exceptions
1919

2020
The operation has been cancelled.
2121

22-
This exception can be caught to perform custom operations on
22+
This exception can be caught to perform custom operations
2323
when asyncio Tasks are cancelled. In almost all situations the
2424
exception must always be re-raised.
2525

2626
.. note::
27+
2728
This exception is a subclass of :exc:`Exception`, so it can be
2829
accidentally suppressed by ``try..except`` block::
2930

@@ -54,7 +55,7 @@ Exceptions
5455

5556
.. exception:: SendfileNotAvailableError
5657

57-
The "sendfile" syscall for is not available for the given
58+
The "sendfile" syscall is not available for the given
5859
socket or file type.
5960

6061
A subclass of :exc:`RuntimeError`.

Doc/library/asyncio-platforms.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Platforms Support
99
=================
1010

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

1415

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

2728
* :meth:`loop.create_unix_connection` and
2829
:meth:`loop.create_unix_server` are not supported.
29-
The :data:`socket.AF_UNIX` socket family is specific to UNIX/
30+
The :data:`socket.AF_UNIX` socket family is specific to UNIX.
3031

3132
* :meth:`loop.add_signal_handler` and
3233
:meth:`loop.remove_signal_handler` are not supported.
@@ -66,8 +67,8 @@ Windows configuration.
6667
Subprocess Support on Windows
6768
-----------------------------
6869

69-
:class:`SelectorEventLoop` on Windows does not support subproceses,
70-
so :class:`ProactorEventLoop` should be used instead::
70+
:class:`SelectorEventLoop` on Windows does not support subproceses.
71+
On Windows, :class:`ProactorEventLoop` should be used instead::
7172

7273
import asyncio
7374

0 commit comments

Comments
 (0)