From: Alex Waygood Date: Mon, 13 Mar 2023 14:31:25 +0000 (+0000) Subject: [3.10] Fix duplicated words in the docs (#102645) X-Git-Tag: v3.10.11~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83ccaf2c09b9217622818f63a841892ce6e03508;p=thirdparty%2FPython%2Fcpython.git [3.10] Fix duplicated words in the docs (#102645) (cherry-picked from commit f6ca71a) With grep utility found some duplicated words Co-authored-by: Виталий Дмитриев --- diff --git a/Doc/library/base64.rst b/Doc/library/base64.rst index 694c1666d023..244542304c4a 100644 --- a/Doc/library/base64.rst +++ b/Doc/library/base64.rst @@ -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 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`. diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 20c85a9c8677..8154147e75b1 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -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 a ``_``. +``capture_pattern`` cannot be a ``_``. In simple terms ``P as NAME`` will match with ``P``, and on success it will set ``NAME = ``.