Skip to content

Commit 561212a

Browse files
authored
Doc: More duplicate word fixes (GH-136299)
1 parent 252e2f7 commit 561212a

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

Include/internal/mimalloc/mimalloc/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ typedef struct mi_segment_s {
481481
struct mi_segment_s* next; // the list of freed segments in the cache (must be first field, see `segment.c:mi_segment_init`)
482482

483483
size_t abandoned; // abandoned pages (i.e. the original owning thread stopped) (`abandoned <= used`)
484-
size_t abandoned_visits; // count how often this segment is visited in the abandoned list (to force reclaim it it is too long)
484+
size_t abandoned_visits; // count how often this segment is visited in the abandoned list (to force reclaim if it is too long)
485485
size_t used; // count of pages in use
486486
uintptr_t cookie; // verify addresses in debug mode: `mi_ptr_cookie(segment) == segment->cookie`
487487

Lib/test/test_argparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,7 @@ def test_r_1_replace(self):
18291829
class StdStreamComparer:
18301830
def __init__(self, attr):
18311831
# We try to use the actual stdXXX.buffer attribute as our
1832-
# marker, but but under some test environments,
1832+
# marker, but under some test environments,
18331833
# sys.stdout/err are replaced by io.StringIO which won't have .buffer,
18341834
# so we use a sentinel simply to show that the tests do the right thing
18351835
# for any buffer supporting object

Lib/test/test_dictcomps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_star_expression(self):
132132

133133
def test_exception_locations(self):
134134
# The location of an exception raised from __init__ or
135-
# __next__ should should be the iterator expression
135+
# __next__ should be the iterator expression
136136
def init_raises():
137137
try:
138138
{x:x for x in BrokenIter(init_raises=True)}

Lib/test/test_setcomps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
class SetComprehensionTest(unittest.TestCase):
155155
def test_exception_locations(self):
156156
# The location of an exception raised from __init__ or
157-
# __next__ should should be the iterator expression
157+
# __next__ should be the iterator expression
158158

159159
def init_raises():
160160
try:

Lib/test/test_zipfile/_path/test_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test_mutability(self, alpharep):
316316
HUGE_ZIPFILE_NUM_ENTRIES = 2**13
317317

318318
def huge_zipfile(self):
319-
"""Create a read-only zipfile with a huge number of entries entries."""
319+
"""Create a read-only zipfile with a huge number of entries."""
320320
strm = io.BytesIO()
321321
zf = zipfile.ZipFile(strm, "w")
322322
for entry in map(str, range(self.HUGE_ZIPFILE_NUM_ENTRIES)):

Misc/NEWS.d/3.10.0a3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ Removed the ``formatter`` module, which was deprecated in Python 3.4. It is
394394
somewhat obsolete, little used, and not tested. It was originally scheduled
395395
to be removed in Python 3.6, but such removals were delayed until after
396396
Python 2.7 EOL. Existing users should copy whatever classes they use into
397-
their code. Patch by Donghee Na and and Terry J. Reedy.
397+
their code. Patch by Donghee Na and Terry J. Reedy.
398398

399399
..
400400

Misc/NEWS.d/3.12.0a5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Adapt the ``_elementtree`` extension module to multi-phase init
253253
.. section: Library
254254
255255
Avoid potential unexpected ``freeaddrinfo`` call (double free) in
256-
:mod:`socket` when when a libc ``getaddrinfo()`` implementation leaves
256+
:mod:`socket` when a libc ``getaddrinfo()`` implementation leaves
257257
garbage in an output pointer when returning an error. Original patch by
258258
Sergey G. Brester.
259259

Misc/NEWS.d/3.13.0a1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ about a 10% improvement.
153153
.. section: Core and Builtins
154154
155155
Guard ``assert(tstate->thread_id > 0)`` with ``#ifndef HAVE_PTHREAD_STUBS``.
156-
This allows for for pydebug builds to work under WASI which (currently)
156+
This allows for pydebug builds to work under WASI which (currently)
157157
lacks thread support.
158158

159159
..

Misc/NEWS.d/3.14.0b1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ warning filtering state if the :data:`sys.flags.context_aware_warnings` flag
10511051
is set to true. This makes using the context manager thread-safe in
10521052
multi-threaded programs. The flag is true by default in free-threaded
10531053
builds and is otherwise false. The value of the flag can be overridden by
1054-
the the :option:`-X context_aware_warnings <-X>` command-line option or by
1054+
the :option:`-X context_aware_warnings <-X>` command-line option or by
10551055
the :envvar:`PYTHON_CONTEXT_AWARE_WARNINGS` environment variable.
10561056

10571057
..

Modules/_asynciomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ future_add_done_callback(asyncio_state *state, FutureObj *fut, PyObject *arg,
821821
Invariants:
822822
823823
* callbacks != NULL:
824-
There are some callbacks in in the list. Just
824+
There are some callbacks in the list. Just
825825
add the new callback to it.
826826
827827
* callbacks == NULL and callback0 == NULL:

0 commit comments

Comments
 (0)