Skip to content

Commit b8e198a

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 3cba3d3 commit b8e198a

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
@@ -320,7 +320,7 @@ an error value).
320320
:mod:`warnings` module and the :option:`-W` option in the command line
321321
documentation. There is no C API for warning control.
322322
323-
.. c:function:: PyObject* PyErr_SetImportErrorSubclass(PyObject *msg, PyObject *name, PyObject *path)
323+
.. c:function:: PyObject* PyErr_SetImportErrorSubclass(PyObject *exception, PyObject *msg, PyObject *name, PyObject *path)
324324
325325
Much like :c:func:`PyErr_SetImportError` but this function allows for
326326
specifying a subclass of :exc:`ImportError` to raise.

0 commit comments

Comments
 (0)