From: Manoj K M Date: Tue, 2 Jun 2026 11:28:12 +0000 (+0530) Subject: [3.13] Fix a typo in 'Exception Handling' C-API documentation (GH-150674) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=3db88720214992c675e09a7efbb4519f69e99f81;p=thirdparty%2FPython%2Fcpython.git [3.13] Fix a typo in 'Exception Handling' C-API documentation (GH-150674) (cherry picked from commit cee3327b9264a653cdbd2f9bb1ffa74a95be66e9) --- diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 8f2ea5902abb..1791f53f30e5 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.