Skip to content

Commit 3455d85

Browse files
[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 46f5a4f) Signed-off-by: jianghuyiyuan <[email protected]> Co-authored-by: jianghuyiyuan <[email protected]>
1 parent b8ef767 commit 3455d85

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Doc/howto/isolating-extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ That is, heap types should:
339339
- Define a traverse function using ``Py_tp_traverse``, which
340340
visits the type (e.g. using ``Py_VISIT(Py_TYPE(self))``).
341341

342-
Please refer to the the documentation of
342+
Please refer to the documentation of
343343
:c:macro:`Py_TPFLAGS_HAVE_GC` and :c:member:`~PyTypeObject.tp_traverse`
344344
for additional considerations.
345345

Doc/library/threading.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ method. The :meth:`~Event.wait` method blocks until the flag is true.
10181018
has not expired. The return value represents the
10191019
reason that this blocking method returned; ``True`` if returning because
10201020
the internal flag is set to true, or ``False`` if a timeout is given and
1021-
the the internal flag did not become true within the given wait time.
1021+
the internal flag did not become true within the given wait time.
10221022

10231023
When the timeout argument is present and not ``None``, it should be a
10241024
floating-point number specifying a timeout for the operation in seconds,

Doc/using/configure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ Remove built files.
11011101
make distclean
11021102
^^^^^^^^^^^^^^
11031103

1104-
In addition to the the work done by ``make clean``, remove files
1104+
In addition to the work done by ``make clean``, remove files
11051105
created by the configure script. ``configure`` will have to be run
11061106
before building again. [#]_
11071107

Lib/test/test_webbrowser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def _obj_ref(self, *args):
244244
@unittest.skipIf(getattr(webbrowser, "objc", None) is None,
245245
"iOS Webbrowser tests require ctypes")
246246
def setUp(self):
247-
# Intercept the the objc library. Wrap the calls to get the
247+
# Intercept the objc library. Wrap the calls to get the
248248
# references to classes and selectors to return strings, and
249249
# wrap msgSend to return stringified object references
250250
self.orig_objc = webbrowser.objc

Python/crossinterp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ _PyXI_excinfo_InitFromException(_PyXI_excinfo *info, PyObject *exc)
699699
Py_DECREF(tbexc);
700700
if (info->errdisplay == NULL) {
701701
#ifdef Py_DEBUG
702-
PyErr_FormatUnraisable("Exception ignored while formating TracebackException");
702+
PyErr_FormatUnraisable("Exception ignored while formatting TracebackException");
703703
#endif
704704
PyErr_Clear();
705705
}

0 commit comments

Comments
 (0)