]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove duplicate words in docs. (GH-26167) (GH-26296)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 22 May 2021 20:55:17 +0000 (13:55 -0700)
committerGitHub <noreply@github.com>
Sat, 22 May 2021 20:55:17 +0000 (21:55 +0100)
(cherry picked from commit b06ed1d883cd79c920c514d8a1f4643cf93dc5e0)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Doc/glossary.rst
Doc/library/enum.rst
Doc/library/fileinput.rst
Doc/library/types.rst
Doc/library/unittest.mock.rst
Doc/whatsnew/3.10.rst

index 29c68ed72c6d70d72f89ea8cace7e28060501acc..afb5da48d256ef588b41bc11cf527e6b53287360 100644 (file)
@@ -712,7 +712,7 @@ Glossary
       On Unix, it is the encoding of the LC_CTYPE locale. It can be set with
       ``locale.setlocale(locale.LC_CTYPE, new_locale)``.
 
-      On Windows, it is is the ANSI code page (ex: ``cp1252``).
+      On Windows, it is the ANSI code page (ex: ``cp1252``).
 
       ``locale.getpreferredencoding(False)`` can be used to get the locale
       encoding.
index 466d95941468afed45a54ebd857f1d5166e8f544..137fe500c9569b8c58b226ca1918c110d620875d 100644 (file)
@@ -595,8 +595,8 @@ Utilites and Decorators
 
    A :keyword:`class` decorator specifically for enumerations.  It replaces the
    :meth:`__repr__` method with one that shows *module_name*.*member_name*.  It
-   also injects the members, and their aliases, into the the global namespace
-   they were defined in.
+   also injects the members, and their aliases, into the global namespace they
+   were defined in.
 
 
 .. decorator:: property
index 819640045cadf737212abcb4f8cf40eb1676493c..3880ed3d2bfc94ddfa692d063974b4363ba86c00 100644 (file)
@@ -205,7 +205,7 @@ The two following opening hooks are provided by this module:
    modules.  If the filename extension is not ``'.gz'`` or ``'.bz2'``, the file is
    opened normally (ie, using :func:`open` without any decompression).
 
-   The *encoding* and *errors* values are passed to to :class:`io.TextIOWrapper`
+   The *encoding* and *errors* values are passed to :class:`io.TextIOWrapper`
    for compressed files and open for normal files.
 
    Usage example:  ``fi = fileinput.FileInput(openhook=fileinput.hook_compressed, encoding="utf-8")``
index b3fac293ecc9e1ab594e23085017e9b298c70abc..2dfc0f2fcadf37107997d87a41fedeab2e0c7317 100644 (file)
@@ -278,8 +278,8 @@ Standard names are defined for the following types:
 
    .. attribute:: __spec__
 
-      A record of the the module's import-system-related state. Expected to be
-      an instance of :class:`importlib.machinery.ModuleSpec`.
+      A record of the module's import-system-related state. Expected to be an
+      instance of :class:`importlib.machinery.ModuleSpec`.
 
       .. versionadded:: 3.4
 
index 1604731b99e3fe5bd37de41f8a27540304bbecc7..f1c0757c510fa60cfef5ff68e9c7641d4825e548 100644 (file)
@@ -328,8 +328,8 @@ the *new_callable* argument to :func:`patch`.
 
     .. method:: assert_called_once_with(*args, **kwargs)
 
-       Assert that the mock was called exactly once and that that call was
-       with the specified arguments.
+       Assert that the mock was called exactly once and that call was with the
+       specified arguments.
 
             >>> mock = Mock(return_value=None)
             >>> mock('foo', bar='baz')
index 2697cf9b6fe873a8c9540d255eeba8fc07e918bd..edc33e0df65a44b6594166422f013f147838477d 100644 (file)
@@ -1574,7 +1574,7 @@ Deprecated
   Python 3.12. Use :meth:`pathlib.Path.hardlink_to` instead.
   (Contributed by Barney Gale in :issue:`39950`.)
 
-* ``cgi.log()`` is deprecated and slated for for removal in Python 3.12.
+* ``cgi.log()`` is deprecated and slated for removal in Python 3.12.
   (Contributed by Inada Naoki in :issue:`41139`.)