]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-137341: Remove more word duplications (GH-137342) (GH-137347)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 3 Aug 2025 17:24:26 +0000 (20:24 +0300)
committerGitHub <noreply@github.com>
Sun, 3 Aug 2025 17:24:26 +0000 (17:24 +0000)
(cherry picked from commit 1612dcbafe763014deefd679fe75ac5831a14a43)

Doc/library/urllib.request.rst
Lib/asyncio/base_events.py
Lib/test/libregrtest/utils.py
Lib/test/support/__init__.py

index c42a1fe37c51705138bed193c57da0093ca76f55..04f5466c1a2c51f8625a80bc515fb5ad521766ef 100644 (file)
@@ -789,7 +789,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 18efe8565e57383978861fad563533481ecbf4b1..356fc3d7913ed38494351475912ed6e8e8f2e178 100644 (file)
@@ -642,7 +642,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.
         """
@@ -662,7 +662,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 fb22002c1898e4ce896c0112e1dc3281f981176f..d5dca353dcd28810387da44e935af5a3658385ed 100644 (file)
@@ -580,7 +580,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 8bed02a158989a8cc121c9ab8f5bae5b17a2152a..60dbdaa33377a8b4cfd60043fc32265937c17d10 100644 (file)
@@ -1622,7 +1622,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').