From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 3 Jul 2019 02:02:57 +0000 (-0700) Subject: bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453) X-Git-Tag: v3.7.5rc1~274 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6323ac1dd49ddbd935ac3354cc5d792c743e7018;p=thirdparty%2FPython%2Fcpython.git bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453) (cherry picked from commit aeecf380660ea459d85bb5f59d76bb54f757b5be) Co-authored-by: Hai Shi --- diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 13e00b544818..14ca2b409969 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -317,7 +317,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.