From: Georg Brandl Date: Mon, 6 Oct 2014 10:58:00 +0000 (+0200) Subject: Closes #22565: fix argument types of PyErr_WarnEx. X-Git-Tag: v3.4.3rc1~546 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97435166aa4cb65d5d18f82782700771682456d5;p=thirdparty%2FPython%2Fcpython.git Closes #22565: fix argument types of PyErr_WarnEx. --- diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 33b44390d24c..8ad742afefa6 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -346,7 +346,7 @@ in various ways. There is a separate error indicator for each thread. use. -.. c:function:: int PyErr_WarnEx(PyObject *category, char *message, int stack_level) +.. c:function:: int PyErr_WarnEx(PyObject *category, const char *message, Py_ssize_t stack_level) Issue a warning message. The *category* argument is a warning category (see below) or *NULL*; the *message* argument is an UTF-8 encoded string. *stack_level* is a