]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] chore: fix typos (GH-116345) (#116375)
authorTerry Jan Reedy <tjreedy@udel.edu>
Tue, 5 Mar 2024 20:33:59 +0000 (15:33 -0500)
committerGitHub <noreply@github.com>
Tue, 5 Mar 2024 20:33:59 +0000 (20:33 +0000)
Co-authored-by: cui fliter <imcusg@gmail.com>
(cherry picked from commit e7ba6e9dbe5433b4a0bcb0658da6a68197c28630)

Doc/library/idle.rst
Lib/test/libregrtest/run_workers.py
Lib/test/libregrtest/utils.py
Lib/test/test_baseexception.py
Tools/scripts/stable_abi.py

index 249dc0ea6ba735bfe2d7feb814a829544219dc07..17a5144b4c0635fc063b8c10b80ae57d76c55940 100644 (file)
@@ -604,7 +604,7 @@ in an editor window.
 The editing features described in previous subsections work when entering
 code interactively.  IDLE's Shell window also responds to the following:
 
-* :kbd:`C-c` attemps to interrupt statement execution (but may fail).
+* :kbd:`C-c` attempts to interrupt statement execution (but may fail).
 
 * :kbd:`C-d` closes Shell if typed at a ``>>>`` prompt.
 
index 7d2c1cd84cd1ee38487bec47794cfeb2ad7dcb3e..3083a873fcebe9c1fd2c42e1643ccf39854735db 100644 (file)
@@ -209,7 +209,7 @@ class WorkerThread(threading.Thread):
             self._popen = None
 
     def create_stdout(self, stack: contextlib.ExitStack) -> TextIO:
-        """Create stdout temporay file (file descriptor)."""
+        """Create stdout temporary file (file descriptor)."""
 
         if MS_WINDOWS:
             # gh-95027: When stdout is not a TTY, Python uses the ANSI code
index 5a0271bcc17d800e9c70c2e0dbb6c0ecdb953940..c8115c4b097da4ae712f3981872a3605a6532c85 100644 (file)
@@ -414,7 +414,7 @@ def get_work_dir(parent_dir: StrPath, worker: bool = False) -> StrPath:
     # the tests. The name of the dir includes the pid to allow parallel
     # testing (see the -j option).
     # Emscripten and WASI have stubbed getpid(), Emscripten has only
-    # milisecond clock resolution. Use randint() instead.
+    # millisecond clock resolution. Use randint() instead.
     if support.is_emscripten or support.is_wasi:
         nounce = random.randint(0, 1_000_000)
     else:
index 4c3cf0b964ae56569194ca4035f1338d9ebe9895..6dc06c5e4bc9d52f80b0bc92ddd27703d8eed3c4 100644 (file)
@@ -129,7 +129,7 @@ class ExceptionClassTests(unittest.TestCase):
 
         d[HashThisKeyWillClearTheDict()] = Value()  # refcount of Value() is 1 now
 
-        # Exception.__setstate__ should aquire a strong reference of key and
+        # Exception.__setstate__ should acquire a strong reference of key and
         # value in the dict. Otherwise, Value()'s refcount would go below
         # zero in the tp_hash call in PyObject_SetAttr(), and it would cause
         # crash in GC.
index f5a9f8d2dd617b0b91439af310feeee5ca7756ed..e9f617c97897b4dccff4edc5eb4e071a15079360 100755 (executable)
@@ -599,7 +599,7 @@ def check_private_names(manifest):
         if name.startswith('_') and not item.abi_only:
             raise ValueError(
                 f'`{name}` is private (underscore-prefixed) and should be '
-                + 'removed from the stable ABI list or or marked `abi_only`')
+                + 'removed from the stable ABI list or marked `abi_only`')
 
 def check_dump(manifest, filename):
     """Check that manifest.dump() corresponds to the data.