Skip to content

Commit d65c949

Browse files
Issue python#25523: Further a-to-an corrections.
1 parent 7462b64 commit d65c949

34 files changed

Lines changed: 39 additions & 39 deletions

Doc/distutils/packageindex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ follows::
167167
username: <username>
168168
password: <password>
169169

170-
The *distutils* section defines a *index-servers* variable that lists the
170+
The *distutils* section defines an *index-servers* variable that lists the
171171
name of all sections describing a repository.
172172

173173
Each section describing a repository defines three variables:

Doc/howto/descriptor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Non-data descriptors provide a simple mechanism for variations on the usual
319319
patterns of binding functions into methods.
320320

321321
To recap, functions have a :meth:`__get__` method so that they can be converted
322-
to a method when accessed as attributes. The non-data descriptor transforms a
322+
to a method when accessed as attributes. The non-data descriptor transforms an
323323
``obj.f(*args)`` call into ``f(obj, *args)``. Calling ``klass.f(*args)``
324324
becomes ``f(*args)``.
325325

Doc/install/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ into. For example, if you've just downloaded a module source distribution
148148

149149
On Windows, you'd probably download :file:`foo-1.0.zip`. If you downloaded the
150150
archive file to :file:`C:\\Temp`, then it would unpack into
151-
:file:`C:\\Temp\\foo-1.0`; you can use either a archive manipulator with a
151+
:file:`C:\\Temp\\foo-1.0`; you can use either an archive manipulator with a
152152
graphical user interface (such as WinZip) or a command-line tool (such as
153153
:program:`unzip` or :program:`pkunzip`) to unpack the archive. Then, open a
154154
command prompt window and run::

Doc/library/asyncio-protocol.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ WriteTransport
148148
high-water limit. Neither *high* nor *low* can be negative.
149149

150150
The defaults are implementation-specific. If only the
151-
high-water limit is given, the low-water limit defaults to a
151+
high-water limit is given, the low-water limit defaults to an
152152
implementation-specific value less than or equal to the
153153
high-water limit. Setting *high* to zero forces *low* to zero as
154154
well, and causes :meth:`pause_writing` to be called whenever the

Doc/library/contextlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Functions and classes provided:
142142
is hardwired to stdout.
143143

144144
For example, the output of :func:`help` normally is sent to *sys.stdout*.
145-
You can capture that output in a string by redirecting the output to a
145+
You can capture that output in a string by redirecting the output to an
146146
:class:`io.StringIO` object::
147147

148148
f = io.StringIO()

Doc/library/email.parser.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ have the same API as the :class:`Parser` and :class:`BytesParser` classes.
146146
methods on file-like objects.
147147

148148
The text contained in *fp* must be formatted as a block of :rfc:`2822`
149-
style headers and header continuation lines, optionally preceded by a
149+
style headers and header continuation lines, optionally preceded by an
150150
envelope header. The header block is terminated either by the end of the
151151
data or by a blank line. Following the header block is the body of the
152152
message (which may contain MIME-encoded subparts).
@@ -189,7 +189,7 @@ have the same API as the :class:`Parser` and :class:`BytesParser` classes.
189189
methods on file-like objects.
190190

191191
The bytes contained in *fp* must be formatted as a block of :rfc:`2822`
192-
style headers and header continuation lines, optionally preceded by a
192+
style headers and header continuation lines, optionally preceded by an
193193
envelope header. The header block is terminated either by the end of the
194194
data or by a blank line. Following the header block is the body of the
195195
message (which may contain MIME-encoded subparts, including subparts

Doc/library/gzip.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The module defines the following items:
6464
method. At least one of *fileobj* and *filename* must be given a non-trivial
6565
value.
6666

67-
The new class instance is based on *fileobj*, which can be a regular file, a
67+
The new class instance is based on *fileobj*, which can be a regular file, an
6868
:class:`io.BytesIO` object, or any other object which simulates a file. It
6969
defaults to ``None``, in which case *filename* is opened to provide a file
7070
object.

Doc/library/pickle.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ process more convenient:
192192
number is specified, :data:`HIGHEST_PROTOCOL` is selected.
193193

194194
The *file* argument must have a write() method that accepts a single bytes
195-
argument. It can thus be an on-disk file opened for binary writing, a
195+
argument. It can thus be an on-disk file opened for binary writing, an
196196
:class:`io.BytesIO` instance, or any other custom object that meets this
197197
interface.
198198

@@ -288,7 +288,7 @@ The :mod:`pickle` module exports two classes, :class:`Pickler` and
288288
number is specified, :data:`HIGHEST_PROTOCOL` is selected.
289289

290290
The *file* argument must have a write() method that accepts a single bytes
291-
argument. It can thus be an on-disk file opened for binary writing, a
291+
argument. It can thus be an on-disk file opened for binary writing, an
292292
:class:`io.BytesIO` instance, or any other custom object that meets this
293293
interface.
294294

Doc/library/socket.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ The :mod:`socket` module also offers various network-related services:
762762

763763
.. function:: sethostname(name)
764764

765-
Set the machine's hostname to *name*. This will raise a
765+
Set the machine's hostname to *name*. This will raise an
766766
:exc:`OSError` if you don't have enough rights.
767767

768768
Availability: Unix.
@@ -794,7 +794,7 @@ The :mod:`socket` module also offers various network-related services:
794794

795795
.. function:: if_indextoname(if_index)
796796

797-
Return a network interface name corresponding to a
797+
Return a network interface name corresponding to an
798798
interface index number.
799799
:exc:`OSError` if no interface with the given index exists.
800800

Doc/library/tokenize.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The primary entry point is a :term:`generator`:
4141
returned as a :term:`named tuple` with the field names:
4242
``type string start end line``.
4343

44-
The returned :term:`named tuple` has a additional property named
44+
The returned :term:`named tuple` has an additional property named
4545
``exact_type`` that contains the exact operator type for
4646
:data:`token.OP` tokens. For all other token types ``exact_type``
4747
equals the named tuple ``type`` field.

0 commit comments

Comments
 (0)