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

With grep utility found some duplicated words

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

index 694c1666d0233c11458c8d1775671f83a413d83a..244542304c4a7fe9acc6f6d581cbf853440ab7bd 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 20c85a9c8677706b0223b6c7c4d53b654b693f98..8154147e75b10ecbfd9248fbe414a8c25d4e4bb2 100644 (file)
@@ -729,7 +729,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>``.