]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Fix duplicated words in the docs (#102644)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Mon, 13 Mar 2023 14:31:50 +0000 (14:31 +0000)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 14:31:50 +0000 (14:31 +0000)
(cherry-picked from commit f6ca71a422)

With grep utility found some duplicated words

Co-authored-by: Виталий Дмитриев <vitaldmit@bk.ru>
Doc/library/base64.rst
Doc/reference/compound_stmts.rst
Misc/NEWS.d/3.11.0a6.rst

index 4ca3768f827c6b5db3c21dc7cdce80e2fddb449f..d5b6af8c1928eff6cb08032b44af8f4698f90851 100644 (file)
@@ -58,7 +58,7 @@ The modern interface provides:
    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.
 
-   May assert or raise 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`.
 
 
index 52bb0b22b042f61ce7316420fb05b083a6851ae4..f0a8936c35bf4a014369c5660786a442ef1ba0f0 100644 (file)
@@ -816,7 +816,7 @@ keyword against a subject.  Syntax:
 
 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.
-``capture_pattern`` cannot be a ``_``.
+``capture_pattern`` cannot be a ``_``.
 
 In simple terms ``P as NAME`` will match with ``P``, and on success it will
 set ``NAME = <subject>``.
index 68b80e46690dc90b636370b292eee6a1ae5c8d68..8621edcfb04bb341cef67c19e2431a9906df576d 100644 (file)
@@ -1055,7 +1055,7 @@ Patch by Victor Stinner.
 .. section: Build
 
 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.
 
 ..