Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,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.

.. versionadded:: 3.10

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/fileinput.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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")``
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,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`.)


Expand Down