Skip to content

Commit b362f75

Browse files
committed
Issue #25523: Correct "a" article to "an" article
This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed to fix the grammar.
1 parent 8c6849b commit b362f75

52 files changed

Lines changed: 68 additions & 68 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Demo/tix/INSTALL.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Installing Tix.py
44
----------------
55

66
0) To use Tix.py, you need Tcl/Tk (V8.3.3), Tix (V8.1.1) and Python (V2.1.1).
7-
Tix.py has been written and tested on a Intel Pentium running RH Linux 5.2
7+
Tix.py has been written and tested on an Intel Pentium running RH Linux 5.2
88
and Mandrake Linux 7.0 and Windows with the above mentioned packages.
99

1010
Older versions, e.g. Tix 4.1 and Tk 8.0, might also work.

Doc/howto/sorting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Operator Module Functions
9090
The key-function patterns shown above are very common, so Python provides
9191
convenience functions to make accessor functions easier and faster. The operator
9292
module has :func:`operator.itemgetter`, :func:`operator.attrgetter`, and
93-
starting in Python 2.5 a :func:`operator.methodcaller` function.
93+
starting in Python 2.5 an :func:`operator.methodcaller` function.
9494

9595
Using those functions, the above examples become simpler and faster:
9696

Doc/library/chunk.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Usually an IFF-type file consists of one or more chunks. The proposed usage of
4848
the :class:`Chunk` class defined here is to instantiate an instance at the start
4949
of each chunk and read from the instance until it reaches the end, after which a
5050
new instance can be instantiated. At the end of the file, creating a new
51-
instance will fail with a :exc:`EOFError` exception.
51+
instance will fail with an :exc:`EOFError` exception.
5252

5353

5454
.. class:: Chunk(file[, align, bigendian, inclheader])

Doc/library/difflib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
276276
generating the delta lines) in unified diff format.
277277

278278
Unified diffs are a compact way of showing just the lines that have changed plus
279-
a few lines of context. The changes are shown in a inline style (instead of
279+
a few lines of context. The changes are shown in an inline style (instead of
280280
separate before/after blocks). The number of context lines is set by *n* which
281281
defaults to three.
282282

Doc/library/ftplib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
283283

284284
.. method:: FTP.transfercmd(cmd[, rest])
285285

286-
Initiate a transfer over the data connection. If the transfer is active, send a
286+
Initiate a transfer over the data connection. If the transfer is active, send an
287287
``EPRT`` or ``PORT`` command and the transfer command specified by *cmd*, and
288-
accept the connection. If the server is passive, send a ``EPSV`` or ``PASV``
288+
accept the connection. If the server is passive, send an ``EPSV`` or ``PASV``
289289
command, connect to it, and start the transfer command. Either way, return the
290290
socket for the connection.
291291

Doc/library/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ I/O Base Classes
221221
Even though :class:`IOBase` does not declare :meth:`read`, :meth:`readinto`,
222222
or :meth:`write` because their signatures will vary, implementations and
223223
clients should consider those methods part of the interface. Also,
224-
implementations may raise a :exc:`IOError` when operations they do not
224+
implementations may raise an :exc:`IOError` when operations they do not
225225
support are called.
226226

227227
The basic type used for binary data read from or written to a file is

Doc/library/optparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ where the input parameters are
13271327
the list of arguments to process (default: ``sys.argv[1:]``)
13281328

13291329
``values``
1330-
a :class:`optparse.Values` object to store option arguments in (default: a
1330+
an :class:`optparse.Values` object to store option arguments in (default: a
13311331
new instance of :class:`Values`) -- if you give an existing object, the
13321332
option defaults will not be initialized on it
13331333

Doc/library/os.path.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ the :mod:`glob` module.)
256256
.. function:: samefile(path1, path2)
257257

258258
Return ``True`` if both pathname arguments refer to the same file or directory
259-
(as indicated by device number and i-node number). Raise an exception if a
259+
(as indicated by device number and i-node number). Raise an exception if an
260260
:func:`os.stat` call on either pathname fails.
261261

262262
Availability: Unix.

Doc/library/smtplib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions).
2222

2323
.. class:: SMTP([host[, port[, local_hostname[, timeout]]]])
2424

25-
A :class:`SMTP` instance encapsulates an SMTP connection. It has methods
25+
An :class:`SMTP` instance encapsulates an SMTP connection. It has methods
2626
that support a full repertoire of SMTP and ESMTP operations. If the optional
2727
host and port parameters are given, the SMTP :meth:`connect` method is
2828
called with those parameters during initialization. If specified,
@@ -45,7 +45,7 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions).
4545

4646
.. class:: SMTP_SSL([host[, port[, local_hostname[, keyfile[, certfile[, timeout]]]]]])
4747

48-
A :class:`SMTP_SSL` instance behaves exactly the same as instances of
48+
An :class:`SMTP_SSL` instance behaves exactly the same as instances of
4949
:class:`SMTP`. :class:`SMTP_SSL` should be used for situations where SSL is
5050
required from the beginning of the connection and using :meth:`starttls` is
5151
not appropriate. If *host* is not specified, the local host is used. If

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ correspond to Unix system calls applicable to sockets.
757757
Set blocking or non-blocking mode of the socket: if *flag* is 0, the socket is
758758
set to non-blocking, else to blocking mode. Initially all sockets are in
759759
blocking mode. In non-blocking mode, if a :meth:`recv` call doesn't find any
760-
data, or if a :meth:`send` call can't immediately dispose of the data, a
760+
data, or if a :meth:`send` call can't immediately dispose of the data, an
761761
:exc:`error` exception is raised; in blocking mode, the calls block until they
762762
can proceed. ``s.setblocking(0)`` is equivalent to ``s.settimeout(0.0)``;
763763
``s.setblocking(1)`` is equivalent to ``s.settimeout(None)``.

0 commit comments

Comments
 (0)