Skip to content

Commit 1612dcb

Browse files
gh-137341: Remove more word duplications (GH-137342)
1 parent 0153d82 commit 1612dcb

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Doc/c-api/object.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Object Protocol
197197
in favour of using :c:func:`PyObject_DelAttr`, but there are currently no
198198
plans to remove it.
199199
200-
The function must not be called with ``NULL`` *v* and an an exception set.
200+
The function must not be called with a ``NULL`` *v* and an exception set.
201201
This case can arise from forgetting ``NULL`` checks and would delete the
202202
attribute.
203203
@@ -214,7 +214,7 @@ Object Protocol
214214
If *v* is ``NULL``, the attribute is deleted, but this feature is
215215
deprecated in favour of using :c:func:`PyObject_DelAttrString`.
216216
217-
The function must not be called with ``NULL`` *v* and an an exception set.
217+
The function must not be called with a ``NULL`` *v* and an exception set.
218218
This case can arise from forgetting ``NULL`` checks and would delete the
219219
attribute.
220220

Doc/library/urllib.request.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ The following attribute and methods should only be used by classes derived from
837837
1. a :class:`Request` object,
838838
#. a file-like object with the HTTP error body,
839839
#. the three-digit code of the error, as a string,
840-
#. the user-visible explanation of the code, as as string, and
840+
#. the user-visible explanation of the code, as a string, and
841841
#. the headers of the error, as a mapping object.
842842

843843
Return values and exceptions raised should be the same as those of

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Other language changes
183183
compatibility between versions of Python, ensure that an explicit ``encoding``
184184
argument is always provided. The :ref:`opt-in encoding warning <io-encoding-warning>`
185185
can be used to identify code that may be affected by this change.
186-
The special special ``encoding='locale'`` argument uses the current locale
186+
The special ``encoding='locale'`` argument uses the current locale
187187
encoding, and has been supported since Python 3.10.
188188

189189
To retain the previous behaviour, Python's UTF-8 mode may be disabled with

Lib/asyncio/base_events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def _check_running(self):
636636
def _run_forever_setup(self):
637637
"""Prepare the run loop to process events.
638638
639-
This method exists so that custom custom event loop subclasses (e.g., event loops
639+
This method exists so that custom event loop subclasses (e.g., event loops
640640
that integrate a GUI event loop with Python's event loop) have access to all the
641641
loop setup logic.
642642
"""
@@ -656,7 +656,7 @@ def _run_forever_setup(self):
656656
def _run_forever_cleanup(self):
657657
"""Clean up after an event loop finishes the looping over events.
658658
659-
This method exists so that custom custom event loop subclasses (e.g., event loops
659+
This method exists so that custom event loop subclasses (e.g., event loops
660660
that integrate a GUI event loop with Python's event loop) have access to all the
661661
loop cleanup logic.
662662
"""

Lib/test/libregrtest/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def normalize_test_name(test_full_name: str, *,
536536
if is_error and short_name in _TEST_LIFECYCLE_HOOKS:
537537
if test_full_name.startswith(('setUpModule (', 'tearDownModule (')):
538538
# if setUpModule() or tearDownModule() failed, don't filter
539-
# tests with the test file name, don't use use filters.
539+
# tests with the test file name, don't use filters.
540540
return None
541541

542542
# This means that we have a failure in a life-cycle hook,

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ def check__all__(test_case, module, name_of_module=None, extra=(),
16861686
'module'.
16871687
16881688
The 'name_of_module' argument can specify (as a string or tuple thereof)
1689-
what module(s) an API could be defined in in order to be detected as a
1689+
what module(s) an API could be defined in order to be detected as a
16901690
public API. One case for this is when 'module' imports part of its public
16911691
API from other modules, possibly a C backend (like 'csv' and its '_csv').
16921692

0 commit comments

Comments
 (0)