Skip to content

Commit 71ef0b4

Browse files
bpo-46157: fix typo in docs (GH-30237)
1 parent 31ff967 commit 71ef0b4

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Creating Futures and Tasks
322322

323323
.. method:: loop.create_future()
324324

325-
Create an :class:`asyncio.Future` object attached to the event loop.
325+
Create a :class:`asyncio.Future` object attached to the event loop.
326326

327327
This is the preferred way to create Futures in asyncio. This lets
328328
third-party event loops provide alternative implementations of
@@ -649,7 +649,7 @@ Creating network servers
649649
* *backlog* is the maximum number of queued connections passed to
650650
:meth:`~socket.socket.listen` (defaults to 100).
651651

652-
* *ssl* can be set to an :class:`~ssl.SSLContext` instance to enable
652+
* *ssl* can be set to a :class:`~ssl.SSLContext` instance to enable
653653
TLS over the accepted connections.
654654

655655
* *reuse_address* tells the kernel to reuse a local socket in
@@ -737,7 +737,7 @@ Creating network servers
737737
* *sock* is a preexisting socket object returned from
738738
:meth:`socket.accept <socket.socket.accept>`.
739739

740-
* *ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over
740+
* *ssl* can be set to a :class:`~ssl.SSLContext` to enable SSL over
741741
the accepted connections.
742742

743743
* *ssl_handshake_timeout* is (for an SSL connection) the time in seconds to
@@ -897,7 +897,7 @@ convenient.
897897

898898
.. versionchanged:: 3.7
899899
Even though the method was always documented as a coroutine
900-
method, before Python 3.7 it returned an :class:`Future`.
900+
method, before Python 3.7 it returned a :class:`Future`.
901901
Since Python 3.7, this is an ``async def`` method.
902902

903903
.. coroutinemethod:: loop.sock_connect(sock, address)

Doc/library/enum.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Data Types
177177

178178
.. method:: EnumType.__getitem__(cls, name)
179179

180-
Returns the Enum member in *cls* matching *name*, or raises an :exc:`KeyError`::
180+
Returns the Enum member in *cls* matching *name*, or raises a :exc:`KeyError`::
181181

182182
>>> Color['BLUE']
183183
Color.BLUE

Doc/library/json.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Basic Usage
159159

160160
If *check_circular* is false (default: ``True``), then the circular
161161
reference check for container types will be skipped and a circular reference
162-
will result in an :exc:`RecursionError` (or worse).
162+
will result in a :exc:`RecursionError` (or worse).
163163

164164
If *allow_nan* is false (default: ``True``), then it will be a
165165
:exc:`ValueError` to serialize out of range :class:`float` values (``nan``,
@@ -432,7 +432,7 @@ Encoders and Decoders
432432

433433
If *check_circular* is true (the default), then lists, dicts, and custom
434434
encoded objects will be checked for circular references during encoding to
435-
prevent an infinite recursion (which would cause an :exc:`RecursionError`).
435+
prevent an infinite recursion (which would cause a :exc:`RecursionError`).
436436
Otherwise, no such check takes place.
437437

438438
If *allow_nan* is true (the default), then ``NaN``, ``Infinity``, and

Doc/library/os.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,7 +2081,7 @@ features:
20812081
directories you can set the umask before invoking :func:`makedirs`. The
20822082
file permission bits of existing parent directories are not changed.
20832083

2084-
If *exist_ok* is ``False`` (the default), an :exc:`FileExistsError` is
2084+
If *exist_ok* is ``False`` (the default), a :exc:`FileExistsError` is
20852085
raised if the target directory already exists.
20862086

20872087
.. note::
@@ -2357,7 +2357,7 @@ features:
23572357
.. function:: rmdir(path, *, dir_fd=None)
23582358

23592359
Remove (delete) the directory *path*. If the directory does not exist or is
2360-
not empty, an :exc:`FileNotFoundError` or an :exc:`OSError` is raised
2360+
not empty, a :exc:`FileNotFoundError` or an :exc:`OSError` is raised
23612361
respectively. In order to remove whole directory trees,
23622362
:func:`shutil.rmtree` can be used.
23632363

Doc/library/poplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ POP3 Objects
121121
All POP3 commands are represented by methods of the same name, in lowercase;
122122
most return the response text sent by the server.
123123

124-
An :class:`POP3` instance has the following methods:
124+
A :class:`POP3` instance has the following methods:
125125

126126

127127
.. method:: POP3.set_debuglevel(level)

Doc/library/tarfile.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ Some facts and figures:
6363
+------------------+---------------------------------------------+
6464
| ``'x'`` or | Create a tarfile exclusively without |
6565
| ``'x:'`` | compression. |
66-
| | Raise an :exc:`FileExistsError` exception |
66+
| | Raise a :exc:`FileExistsError` exception |
6767
| | if it already exists. |
6868
+------------------+---------------------------------------------+
6969
| ``'x:gz'`` | Create a tarfile with gzip compression. |
70-
| | Raise an :exc:`FileExistsError` exception |
70+
| | Raise a :exc:`FileExistsError` exception |
7171
| | if it already exists. |
7272
+------------------+---------------------------------------------+
7373
| ``'x:bz2'`` | Create a tarfile with bzip2 compression. |
74-
| | Raise an :exc:`FileExistsError` exception |
74+
| | Raise a :exc:`FileExistsError` exception |
7575
| | if it already exists. |
7676
+------------------+---------------------------------------------+
7777
| ``'x:xz'`` | Create a tarfile with lzma compression. |
78-
| | Raise an :exc:`FileExistsError` exception |
78+
| | Raise a :exc:`FileExistsError` exception |
7979
| | if it already exists. |
8080
+------------------+---------------------------------------------+
8181
| ``'a' or 'a:'`` | Open for appending with no compression. The |

0 commit comments

Comments
 (0)