https://github.com/python/cpython/commit/3455d8560ae7be1f314593b16d20562294f9e50b
commit: 3455d8560ae7be1f314593b16d20562294f9e50b
branch: 3.13
author: Alex Waygood <[email protected]>
committer: Yhg1s <[email protected]>
date: 2024-09-02T12:44:42+02:00
summary:

[3.13] Fix typos in docs, error messages and comments (#122502) (#122606)

Fix typos in docs, error messages and comments (#122502)

(cherry-picked from commit 46f5a4f9e1781ad8d60eb53bbaf6cd8534a286cd)

Signed-off-by: jianghuyiyuan <[email protected]>
Co-authored-by: jianghuyiyuan <[email protected]>

files:
M Doc/howto/isolating-extensions.rst
M Doc/library/threading.rst
M Doc/using/configure.rst
M Lib/test/test_webbrowser.py
M Python/crossinterp.c

diff --git a/Doc/howto/isolating-extensions.rst 
b/Doc/howto/isolating-extensions.rst
index e35855deedbe5f..a636e06bda8344 100644
--- a/Doc/howto/isolating-extensions.rst
+++ b/Doc/howto/isolating-extensions.rst
@@ -339,7 +339,7 @@ That is, heap types should:
 - Define a traverse function using ``Py_tp_traverse``, which
   visits the type (e.g. using ``Py_VISIT(Py_TYPE(self))``).
 
-Please refer to the the documentation of
+Please refer to the documentation of
 :c:macro:`Py_TPFLAGS_HAVE_GC` and :c:member:`~PyTypeObject.tp_traverse`
 for additional considerations.
 
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 49c2b9b3ccd4fd..cb82fea377697b 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -1018,7 +1018,7 @@ method.  The :meth:`~Event.wait` method blocks until the 
flag is true.
       has not expired. The return value represents the
       reason that this blocking method returned; ``True`` if returning because
       the internal flag is set to true, or ``False`` if a timeout is given and
-      the the internal flag did not become true within the given wait time.
+      the internal flag did not become true within the given wait time.
 
       When the timeout argument is present and not ``None``, it should be a
       floating-point number specifying a timeout for the operation in seconds,
diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst
index 754191de7bebee..052289bd827366 100644
--- a/Doc/using/configure.rst
+++ b/Doc/using/configure.rst
@@ -1101,7 +1101,7 @@ Remove built files.
 make distclean
 ^^^^^^^^^^^^^^
 
-In addition to the the work done by ``make clean``, remove files
+In addition to the work done by ``make clean``, remove files
 created by the configure script.  ``configure`` will have to be run
 before building again. [#]_
 
diff --git a/Lib/test/test_webbrowser.py b/Lib/test/test_webbrowser.py
index ae8d776e8413ff..4fcbc5c2e59ea3 100644
--- a/Lib/test/test_webbrowser.py
+++ b/Lib/test/test_webbrowser.py
@@ -244,7 +244,7 @@ def _obj_ref(self, *args):
     @unittest.skipIf(getattr(webbrowser, "objc", None) is None,
                      "iOS Webbrowser tests require ctypes")
     def setUp(self):
-        # Intercept the the objc library. Wrap the calls to get the
+        # Intercept the objc library. Wrap the calls to get the
         # references to classes and selectors to return strings, and
         # wrap msgSend to return stringified object references
         self.orig_objc = webbrowser.objc
diff --git a/Python/crossinterp.c b/Python/crossinterp.c
index a03456a8bbfd6f..2af0dd6191aa4e 100644
--- a/Python/crossinterp.c
+++ b/Python/crossinterp.c
@@ -699,7 +699,7 @@ _PyXI_excinfo_InitFromException(_PyXI_excinfo *info, 
PyObject *exc)
         Py_DECREF(tbexc);
         if (info->errdisplay == NULL) {
 #ifdef Py_DEBUG
-            PyErr_FormatUnraisable("Exception ignored while formating 
TracebackException");
+            PyErr_FormatUnraisable("Exception ignored while formatting 
TracebackException");
 #endif
             PyErr_Clear();
         }

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to