8000 [3.13] Docs: Fix duplicate word typos (GH-135958) (GH-136008) · python/cpython@cee66dd · GitHub
[go: up one dir, main page]

Skip to content

Commit cee66dd

Browse files
[3.13] Docs: Fix duplicate word typos (GH-135958) (GH-136008)
(cherry picked from commit 34ce192)
1 parent 784c0ed commit cee66dd

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

Doc/c-api/long.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
382382
All *n_bytes* of the buffer are written: large buffers are padded with
383383
zeroes.
384384
385-
If the returned value is greater than than *n_bytes*, the value was
385+
If the returned value is greater than *n_bytes*, the value was
386386
truncated: as many of the lowest bits of the value as could fit are written,
387387
and the higher bits are ignored. This matches the typical behavior
388388
of a C-style downcast.

Doc/library/email.header.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ The :mod:`email.header` module also provides the following convenient functions.
206206

207207
.. note::
208208

209-
This function exists for for backwards compatibility only. For
209+
This function exists for backwards compatibility only. For
210210
new code, we recommend using :class:`email.headerregistry.HeaderRegistry`.
211211

212212

@@ -225,5 +225,5 @@ The :mod:`email.header` module also provides the following convenient functions.
225225

226226
.. note::
227227

228-
This function exists for for backwards compatibility only, and is
228+
This function exists for backwards compatibility only, and is
229229
not recommended for use in new code.

Doc/library/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ their subgroups based on the types of the contained exceptions.
10381038
subclasses that need a different constructor signature need to
10391039
override that rather than :meth:`~object.__init__`. For example, the following
10401040
defines an exception group subclass which accepts an exit_code and
1041-
and constructs the group's message from it. ::
1041+
constructs the group's message from it. ::
10421042

10431043
class Errors(ExceptionGroup):
10441044
def __new__(cls, errors, exit_code):

Doc/library/mmap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
269269

270270
Resizing a map created with *access* of :const:`ACCESS_READ` or
271271
:const:`ACCESS_COPY`, will raise a :exc:`TypeError` exception.
272-
Resizing a map created with with *trackfd* set to ``False``,
272+
Resizing a map created with *trackfd* set to ``False``,
273273
will raise a :exc:`ValueError` exception.
274274

275275
**On Windows**: Resizing the map will raise an :exc:`OSError` if there are other

Doc/library/socketserver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ objects that simplify communication by providing the standard file interface)::
535535

536536
The difference is that the ``readline()`` call in the second handler will call
537537
``recv()`` multiple times until it encounters a newline character, while the
538-
the first handler had to use a ``recv()`` loop to accumulate data until a
538+
first handler had to use a ``recv()`` loop to accumulate data until a
539539
newline itself. If it had just used a single ``recv()`` without the loop it
540540
would just have returned what has been received so far from the client.
541541
TCP is stream based: data arrives in the order it was sent, but there no

Doc/whatsnew/3.13.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,7 @@ New Deprecations
20052005
(Contributed by Alex Waygood in :gh:`105566` and :gh:`105570`.)
20062006

20072007
* Deprecate the :func:`typing.no_type_check_decorator` decorator function,
2008-
to be removed in in Python 3.15.
2008+
to be removed in Python 3.15.
20092009
After eight years in the :mod:`typing` module,
20102010
it has yet to be supported by any major type checker.
20112011
(Contributed by Alex Waygood in :gh:`106309`.)

0 commit comments

Comments
 (0)
0