Skip to content

gh-137341: Remove more word duplications #137342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-137341: Remove more word duplications
  • Loading branch information
serhiy-storchaka committed Aug 3, 2025
commit 609470b268372f4b9f02adfde4c2d9aaac49101f
4 changes: 2 additions & 2 deletions Doc/c-api/object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Object Protocol
in favour of using :c:func:`PyObject_DelAttr`, but there are currently no
plans to remove it.

The function must not be called with ``NULL`` *v* and an an exception set.
The function must not be called with ``NULL`` *v* and an exception set.
This case can arise from forgetting ``NULL`` checks and would delete the
attribute.

Expand All @@ -214,7 +214,7 @@ Object Protocol
If *v* is ``NULL``, the attribute is deleted, but this feature is
deprecated in favour of using :c:func:`PyObject_DelAttrString`.

The function must not be called with ``NULL`` *v* and an an exception set.
The function must not be called with ``NULL`` *v* and an exception set.
This case can arise from forgetting ``NULL`` checks and would delete the
attribute.

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/urllib.request.rst
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ The following attribute and methods should only be used by classes derived from
1. a :class:`Request` object,
#. a file-like object with the HTTP error body,
#. the three-digit code of the error, as a string,
#. the user-visible explanation of the code, as as string, and
#. the user-visible explanation of the code, as a string, and
#. the headers of the error, as a mapping object.

Return values and exceptions raised should be the same as those of
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Other language changes
compatibility between versions of Python, ensure that an explicit ``encoding``
argument is always provided. The :ref:`opt-in encoding warning <io-encoding-warning>`
can be used to identify code that may be affected by this change.
The special special ``encoding='locale'`` argument uses the current locale
The special ``encoding='locale'`` argument uses the current locale
encoding, and has been supported since Python 3.10.

To retain the previous behaviour, Python's UTF-8 mode may be disabled with
Expand Down
4 changes: 2 additions & 2 deletions Lib/asyncio/base_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def _check_running(self):
def _run_forever_setup(self):
"""Prepare the run loop to process events.

This method exists so that custom custom event loop subclasses (e.g., event loops
This method exists so that custom event loop subclasses (e.g., event loops
that integrate a GUI event loop with Python's event loop) have access to all the
loop setup logic.
"""
Expand All @@ -656,7 +656,7 @@ def _run_forever_setup(self):
def _run_forever_cleanup(self):
"""Clean up after an event loop finishes the looping over events.

This method exists so that custom custom event loop subclasses (e.g., event loops
This method exists so that custom event loop subclasses (e.g., event loops
that integrate a GUI event loop with Python's event loop) have access to all the
loop cleanup logic.
"""
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/libregrtest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def normalize_test_name(test_full_name: str, *,
if is_error and short_name in _TEST_LIFECYCLE_HOOKS:
if test_full_name.startswith(('setUpModule (', 'tearDownModule (')):
# if setUpModule() or tearDownModule() failed, don't filter
# tests with the test file name, don't use use filters.
# tests with the test file name, don't use filters.
return None

# This means that we have a failure in a life-cycle hook,
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ def check__all__(test_case, module, name_of_module=None, extra=(),
'module'.

The 'name_of_module' argument can specify (as a string or tuple thereof)
what module(s) an API could be defined in in order to be detected as a
what module(s) an API could be defined in order to be detected as a
public API. One case for this is when 'module' imports part of its public
API from other modules, possibly a C backend (like 'csv' and its '_csv').

Expand Down
Loading