summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-06 10:58:00 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-06 10:58:00 (GMT)
commit97435166aa4cb65d5d18f82782700771682456d5 (patch)
tree6ad3eac341d603a3f6b7a28b5f917cb238e7d027 /Doc/c-api
parentc6ad57608b2581ff14a825f3bcf30a0337ba71e8 (diff)
downloadcpython-97435166aa4cb65d5d18f82782700771682456d5.zip
cpython-97435166aa4cb65d5d18f82782700771682456d5.tar.gz
cpython-97435166aa4cb65d5d18f82782700771682456d5.tar.bz2
Closes #22565: fix argument types of PyErr_WarnEx.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/exceptions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 33b4439..8ad742a 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