]> granicus.if.org Git - python/commitdiff
Fix a few grammar problems in the documentation and comments
authorMartin Panter <vadmium+py@gmail.com>
Sat, 14 Nov 2015 01:07:43 +0000 (01:07 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 14 Nov 2015 01:07:43 +0000 (01:07 +0000)
Doc/library/ast.rst
Doc/library/copy.rst
Doc/library/ftplib.rst
Lib/doctest.py
Lib/test/test_argparse.py

index 1ee51102115769062ae4a915abf45b96677f044e..5373acd57b0e477b17c6420bf3085561fb4d92cf 100644 (file)
@@ -104,7 +104,7 @@ The abstract grammar is currently defined as follows:
 :mod:`ast` Helpers
 ------------------
 
-Apart from the node classes, :mod:`ast` module defines these utility functions
+Apart from the node classes, the :mod:`ast` module defines these utility functions
 and classes for traversing abstract syntax trees:
 
 .. function:: parse(source, filename='<unknown>', mode='exec')
index 1db5c2dfd16af59a35abaab899f933ed118fb2e0..02ef0e5ee7d35bd36885575d9e5d7a6833e097a0 100644 (file)
@@ -67,8 +67,8 @@ of lists by assigning a slice of the entire list, for example,
 
 Classes can use the same interfaces to control copying that they use to control
 pickling.  See the description of module :mod:`pickle` for information on these
-methods.  In fact, :mod:`copy` module uses the registered pickle functions from
-:mod:`copyreg` module.
+methods.  In fact, the :mod:`copy` module uses the registered
+pickle functions from the :mod:`copyreg` module.
 
 .. index::
    single: __copy__() (copy protocol)
index 2521f49c723e3fef02530a36a5fe61a45a2302d1..3d1f783a5ccd157bc579ab40ce510ce27d77050b 100644 (file)
@@ -418,8 +418,8 @@ FTP_TLS Objects
 
 .. method:: FTP_TLS.auth()
 
-   Set up secure control connection by using TLS or SSL, depending on what
-   specified in :meth:`ssl_version` attribute.
+   Set up secure control connection by using TLS or SSL, depending on what
+   is specified in the :attr:`ssl_version` attribute.
 
    .. versionchanged:: 3.4
       The method now supports hostname check with
index 64e6d71e723e47ae1e21ce8411427ee33e1398ac..432ef05ef0914f6d36b71a10613d8704e65a2810 100644 (file)
@@ -1573,7 +1573,7 @@ class OutputChecker:
 
         # If `want` contains hex-escaped character such as "\u1234",
         # then `want` is a string of six characters(e.g. [\,u,1,2,3,4]).
-        # On the other hand, `got` could be an another sequence of
+        # On the other hand, `got` could be another sequence of
         # characters such as [\u1234], so `want` and `got` should
         # be folded to hex-escaped ASCII string to compare.
         got = self._toAscii(got)
index ecc5507a594341e6a8f1cef1b692b36413dfb3d6..5efdb67334013540a57c25f7e22b8324062d8682 100644 (file)
@@ -3019,7 +3019,7 @@ class TestShortColumns(HelpTestCase):
     '''Test extremely small number of columns.
 
     TestCase prevents "COLUMNS" from being too small in the tests themselves,
-    but we don't want any exceptions thrown in such case. Only ugly representation.
+    but we don't want any exceptions thrown in such cases. Only ugly representation.
     '''
     def setUp(self):
         env = support.EnvironmentVarGuard()