]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-137341: Remove more word duplications (GH-137342)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 3 Aug 2025 16:41:12 +0000 (19:41 +0300)
committerGitHub <noreply@github.com>
Sun, 3 Aug 2025 16:41:12 +0000 (19:41 +0300)
Doc/c-api/object.rst
Doc/library/urllib.request.rst
Doc/whatsnew/3.15.rst
Lib/asyncio/base_events.py
Lib/test/libregrtest/utils.py
Lib/test/support/__init__.py

index 55f0d0f9fb7ff86472575c5ad13220728daf1384..78599e704b1317c565bec9a7e2a8e2c65db7fcdc 100644 (file)
@@ -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 a ``NULL`` *v* and an exception set.
    This case can arise from forgetting ``NULL`` checks and would delete the
    attribute.
 
@@ -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 a ``NULL`` *v* and an exception set.
    This case can arise from forgetting ``NULL`` checks and would delete the
    attribute.
 
index e514b98fc5d553abc8f7746dc68aee9090742b9f..5f796578eaa64e6118eea7926863509f129ec33f 100644 (file)
@@ -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
index 010f6ce7f50e1ebdcafbf26a900b2f6e77f5411a..e716d7bb0f2a5c3bd47b3df1afc785d2156f3ea5 100644 (file)
@@ -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
index 520d4b398545bf13838e610f7d6f10bbc7fc39df..8cbb71f708537fe2c7b04586b49a6e67132a8996 100644 (file)
@@ -636,7 +636,7 @@ class BaseEventLoop(events.AbstractEventLoop):
     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.
         """
@@ -656,7 +656,7 @@ class BaseEventLoop(events.AbstractEventLoop):
     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.
         """
index 72b8ea89e62ee0351d0fad14cbd410c74f1a111e..d94fb84a743828862121e24d430ea062454135fe 100644 (file)
@@ -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,
index cea2f09aae5d51447446da29efd2847a42a302f7..29cf32966d4e4a679f25432d73c8c740022e1791 100644 (file)
@@ -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').