Commit aeecf380 authored by Hai Shi's avatar Hai Shi Committed by Xiang Zhang

bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)

parent 477b1b25
...@@ -320,7 +320,7 @@ an error value). ...@@ -320,7 +320,7 @@ an error value).
:mod:`warnings` module and the :option:`-W` option in the command line :mod:`warnings` module and the :option:`-W` option in the command line
documentation. There is no C API for warning control. documentation. There is no C API for warning control.
.. c:function:: PyObject* PyErr_SetImportErrorSubclass(PyObject *msg, PyObject *name, PyObject *path) .. c:function:: PyObject* PyErr_SetImportErrorSubclass(PyObject *exception, PyObject *msg, PyObject *name, PyObject *path)
Much like :c:func:`PyErr_SetImportError` but this function allows for Much like :c:func:`PyErr_SetImportError` but this function allows for
specifying a subclass of :exc:`ImportError` to raise. specifying a subclass of :exc:`ImportError` to raise.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment