From e63c3e9f3909dd2942426f3a918a31871317c68f Mon Sep 17 00:00:00 2001 From: Manoj K M Date: Tue, 2 Jun 2026 14:44:13 +0530 Subject: [PATCH] [3.14] Fix two typos in 'Exception Handling' C-API documentation (GH-150674) (cherry picked from commit cee3327b9264a653cdbd2f9bb1ffa74a95be66e9) Co-authored-by: Manoj K M --- Doc/c-api/exceptions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 3a7fa0d1ff6edc1..575fbc14f33f2cc 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -412,7 +412,7 @@ an error value). .. c:function:: int PyErr_WarnFormat(PyObject *category, Py_ssize_t stack_level, const char *format, ...) - Function similar to :c:func:`PyErr_WarnEx`, but use + Function similar to :c:func:`PyErr_WarnEx`, but uses :c:func:`PyUnicode_FromFormat` to format the warning message. *format* is an ASCII-encoded string.