[Python-checkins] [3.10] Fix duplicated words in the docs (#102645)
AlexWaygood
webhook-mailer at python.org
Mon Mar 13 10:31:33 EDT 2023
https://github.com/python/cpython/commit/83ccaf2c09b9217622818f63a841892ce6e03508
commit: 83ccaf2c09b9217622818f63a841892ce6e03508
branch: 3.10
author: Alex Waygood <Alex.Waygood at Gmail.com>
committer: AlexWaygood <Alex.Waygood at Gmail.com>
date: 2023-03-13T14:31:25Z
summary:
[3.10] Fix duplicated words in the docs (#102645)
(cherry-picked from commit f6ca71a)
With grep utility found some duplicated words
Co-authored-by: Виталий Дмитриев <vitaldmit at bk.ru>
files:
M Doc/library/base64.rst
M Doc/reference/compound_stmts.rst
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 = <subject>``.
More information about the Python-checkins
mailing list