[Python-checkins] bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)

Xiang Zhang webhook-mailer at python.org
Tue Jul 2 21:56:24 EDT 2019


https://github.com/python/cpython/commit/aeecf380660ea459d85bb5f59d76bb54f757b5be
commit: aeecf380660ea459d85bb5f59d76bb54f757b5be
branch: master
author: Hai Shi <shihai1992 at gmail.com>
committer: Xiang Zhang <angwerzx at 126.com>
date: 2019-07-03T09:56:07+08:00
summary:

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

files:
M Doc/c-api/exceptions.rst

diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index d3f6daa8347e..d8173935596b 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.



More information about the Python-checkins mailing list