]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Docs: Fix duplicate word typos (GH-135958) (GH-136008)
authorBrian Schubert <brianm.schubert@gmail.com>
Fri, 27 Jun 2025 00:13:46 +0000 (20:13 -0400)
committerGitHub <noreply@github.com>
Fri, 27 Jun 2025 00:13:46 +0000 (20:13 -0400)
(cherry picked from commit 34ce1920ca33c11ca2c379ed0ef30a91010bef4f)

Doc/c-api/long.rst
Doc/library/email.header.rst
Doc/library/exceptions.rst
Doc/library/mmap.rst
Doc/library/socketserver.rst
Doc/whatsnew/3.13.rst

index 1f899b1df196f2639c66e832938e987e595719cf..2d36dfe80362f3b0c8ad7e83744d3af9e0fee5ee 100644 (file)
@@ -382,7 +382,7 @@ distinguished from a number.  Use :c:func:`PyErr_Occurred` to disambiguate.
    All *n_bytes* of the buffer are written: large buffers are padded with
    zeroes.
 
-   If the returned value is greater than than *n_bytes*, the value was
+   If the returned value is greater than *n_bytes*, the value was
    truncated: as many of the lowest bits of the value as could fit are written,
    and the higher bits are ignored. This matches the typical behavior
    of a C-style downcast.
index c3392a62b8ee796ff9d01f219e6fd6afe37a3091..f49885b87852357066c4e8403637fde2b8354ffa 100644 (file)
@@ -206,7 +206,7 @@ The :mod:`email.header` module also provides the following convenient functions.
 
    .. note::
 
-       This function exists for for backwards compatibility only. For
+       This function exists for backwards compatibility only. For
        new code, we recommend using :class:`email.headerregistry.HeaderRegistry`.
 
 
@@ -225,5 +225,5 @@ The :mod:`email.header` module also provides the following convenient functions.
 
    .. note::
 
-       This function exists for for backwards compatibility only, and is
+       This function exists for backwards compatibility only, and is
        not recommended for use in new code.
index cf8b95129d31d313660aef7d8f299fc270ebcac4..9b6e532a4833cf32a587eb208b1b0425a30c9929 100644 (file)
@@ -1038,7 +1038,7 @@ their subgroups based on the types of the contained exceptions.
    subclasses that need a different constructor signature need to
    override that rather than :meth:`~object.__init__`. For example, the following
    defines an exception group subclass which accepts an exit_code and
-   and constructs the group's message from it. ::
+   constructs the group's message from it. ::
 
       class Errors(ExceptionGroup):
          def __new__(cls, errors, exit_code):
index 4e20c07331a2207e1a224713735e97cedba1eca9..8fca79b23e4e156d67df64ac608d69ebebeb4cf2 100644 (file)
@@ -269,7 +269,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
 
       Resizing a map created with *access* of :const:`ACCESS_READ` or
       :const:`ACCESS_COPY`, will raise a :exc:`TypeError` exception.
-      Resizing a map created with with *trackfd* set to ``False``,
+      Resizing a map created with *trackfd* set to ``False``,
       will raise a :exc:`ValueError` exception.
 
       **On Windows**: Resizing the map will raise an :exc:`OSError` if there are other
index 72e9a2e10804a8b03e7d5cc166c3ea04f450b250..8e699be8c8363165994c58d3d51433e84b4dcbf8 100644 (file)
@@ -535,7 +535,7 @@ objects that simplify communication by providing the standard file interface)::
 
 The difference is that the ``readline()`` call in the second handler will call
 ``recv()`` multiple times until it encounters a newline character, while the
-the first handler had to use a ``recv()`` loop to accumulate data until a
+first handler had to use a ``recv()`` loop to accumulate data until a
 newline itself.  If it had just used a single ``recv()`` without the loop it
 would just have returned what has been received so far from the client.
 TCP is stream based: data arrives in the order it was sent, but there no
index bd3716aa11ee4a06cadc138a5254a22a1cd6216f..1b969b3fd2ec543a99158e3ea7bcac57c0800c7d 100644 (file)
@@ -2005,7 +2005,7 @@ New Deprecations
     (Contributed by Alex Waygood in :gh:`105566` and :gh:`105570`.)
 
   * Deprecate the :func:`typing.no_type_check_decorator` decorator function,
-    to be removed in in Python 3.15.
+    to be removed in Python 3.15.
     After eight years in the :mod:`typing` module,
     it has yet to be supported by any major type checker.
     (Contributed by Alex Waygood in :gh:`106309`.)