diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-22 20:55:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-22 20:55:17 (GMT) |
commit | 37da1f09a277d9e29f655a87174e37453b6e3211 (patch) | |
tree | 38b56eb0ad44e6948dd3aeed1091b94f7331b6c7 /Doc/library | |
parent | 50b0d148a68072292832eb69bdf1815b8059355f (diff) | |
download | cpython-37da1f09a277d9e29f655a87174e37453b6e3211.zip cpython-37da1f09a277d9e29f655a87174e37453b6e3211.tar.gz cpython-37da1f09a277d9e29f655a87174e37453b6e3211.tar.bz2 |
Remove duplicate words in docs. (GH-26167) (GH-26296)
(cherry picked from commit b06ed1d883cd79c920c514d8a1f4643cf93dc5e0)
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/enum.rst | 4 | ||||
-rw-r--r-- | Doc/library/fileinput.rst | 2 | ||||
-rw-r--r-- | Doc/library/types.rst | 4 | ||||
-rw-r--r-- | Doc/library/unittest.mock.rst | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 466d959..137fe50 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -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 diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst index 8196400..3880ed3 100644 --- a/Doc/library/fileinput.rst +++ b/Doc/library/fileinput.rst @@ -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")`` diff --git a/Doc/library/types.rst b/Doc/library/types.rst index b3fac293..2dfc0f2 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -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 diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 1604731..f1c0757 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -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') |