Skip to content

Commit 6323ac1

Browse files
bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)
(cherry picked from commit aeecf38) Co-authored-by: Hai Shi <[email protected]>
1 parent 2e4411b commit 6323ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ an error value).
317317
:mod:`warnings` module and the :option:`-W` option in the command line
318318
documentation. There is no C API for warning control.
319319
320-
.. c:function:: PyObject* PyErr_SetImportErrorSubclass(PyObject *msg, PyObject *name, PyObject *path)
320+
.. c:function:: PyObject* PyErr_SetImportErrorSubclass(PyObject *exception, PyObject *msg, PyObject *name, PyObject *path)
321321
322322
Much like :c:func:`PyErr_SetImportError` but this function allows for
323323
specifying a subclass of :exc:`ImportError` to raise.

0 commit comments

Comments
 (0)