[3.11] Fix duplicated words in the docs (#102644)

(cherry-picked from commit f6ca71a422)

With grep utility found some duplicated words

Co-authored-by: Виталий Дмитриев <vitaldmit@bk.ru>
This commit is contained in:
Alex Waygood 2023-03-13 14:31:50 +00:00 committed by GitHub
parent 8a99debc12
commit a4fcd06c50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ The modern interface provides:
This allows an application to e.g. generate URL or filesystem safe Base64 This allows an application to e.g. generate URL or filesystem safe Base64
strings. The default is ``None``, for which the standard Base64 alphabet is used. strings. The default is ``None``, for which the standard Base64 alphabet is used.
May assert or raise a a :exc:`ValueError` if the length of *altchars* is not 2. Raises a May assert or raise a :exc:`ValueError` if the length of *altchars* is not 2. Raises a
:exc:`TypeError` if *altchars* is not a :term:`bytes-like object`. :exc:`TypeError` if *altchars* is not a :term:`bytes-like object`.

View file

@ -816,7 +816,7 @@ keyword against a subject. Syntax:
If the OR pattern fails, the AS pattern fails. Otherwise, the AS pattern binds If the OR pattern fails, the AS pattern fails. Otherwise, the AS pattern binds
the subject to the name on the right of the as keyword and succeeds. the subject to the name on the right of the as keyword and succeeds.
``capture_pattern`` cannot be a a ``_``. ``capture_pattern`` cannot be a ``_``.
In simple terms ``P as NAME`` will match with ``P``, and on success it will In simple terms ``P as NAME`` will match with ``P``, and on success it will
set ``NAME = <subject>``. set ``NAME = <subject>``.

View file

@ -1055,7 +1055,7 @@ Patch by Victor Stinner.
.. section: Build .. section: Build
Building Python now requires support for floating point Not-a-Number (NaN): Building Python now requires support for floating point Not-a-Number (NaN):
remove the ``Py_NO_NAN`` macro. Patch by by Victor Stinner. remove the ``Py_NO_NAN`` macro. Patch by Victor Stinner.
.. ..