Fix a few grammar problems in the documentation and comments · pythoncapi/cpython@2e4571a · GitHub
Skip to content

Commit 2e4571a

Browse files
committed
Fix a few grammar problems in the documentation and comments
1 parent ac34e09 commit 2e4571a

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/library/ast.rst

Lines changed: 1 addition & 1 deletion

Doc/library/copy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ of lists by assigning a slice of the entire list, for example,
6767

6868
Classes can use the same interfaces to control copying that they use to control
6969
pickling. See the description of module :mod:`pickle` for information on these
70-
methods. In fact, :mod:`copy` module uses the registered pickle functions from
71-
:mod:`copyreg` module.
70+
methods. In fact, the :mod:`copy` module uses the registered
71+
pickle functions from the :mod:`copyreg` module.
7272

7373
.. index::
7474
single: __copy__() (copy protocol)

Doc/library/ftplib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ FTP_TLS Objects
418418

419419
.. method:: FTP_TLS.auth()
420420

421-
Set up secure control connection by using TLS or SSL, depending on what
422-
specified in :meth:`ssl_version` attribute.
421+
Set up a secure control connection by using TLS or SSL, depending on what
422+
is specified in the :attr:`ssl_version` attribute.
423423

424424
.. versionchanged:: 3.4
425425
The method now supports hostname check with

Lib/doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ def check_output(self, want, got, optionflags):
15731573

15741574
# If `want` contains hex-escaped character such as "\u1234",
15751575
# then `want` is a string of six characters(e.g. [\,u,1,2,3,4]).
1576-
# On the other hand, `got` could be an another sequence of
1576+
# On the other hand, `got` could be another sequence of
15771577
# characters such as [\u1234], so `want` and `got` should
15781578
# be folded to hex-escaped ASCII string to compare.
15791579
got = self._toAscii(got)

Lib/test/test_argparse.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)