diff options
author | Hai Shi <shihai1992@gmail.com> | 2019-07-03 01:56:07 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2019-07-03 01:56:07 (GMT) |
commit | aeecf380660ea459d85bb5f59d76bb54f757b5be (patch) | |
tree | f23a814f7c25a2a996f347f3b5053d48cda81bea /Doc/c-api | |
parent | 477b1b25768945621d466a8b3f0739297a842439 (diff) | |
download | cpython-aeecf380660ea459d85bb5f59d76bb54f757b5be.zip cpython-aeecf380660ea459d85bb5f59d76bb54f757b5be.tar.gz cpython-aeecf380660ea459d85bb5f59d76bb54f757b5be.tar.bz2 |
bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/exceptions.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index d3f6daa..d817393 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -320,7 +320,7 @@ an error value). :mod:`warnings` module and the :option:`-W` option in the command line 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 specifying a subclass of :exc:`ImportError` to raise. |