summaryrefslogtreecommitdiff
path: root/Include/warnings.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/warnings.h')
-rw-r--r--Include/warnings.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/warnings.h b/Include/warnings.h
index b7db681cc4..5a7dfb1bb2 100644
--- a/Include/warnings.h
+++ b/Include/warnings.h
@@ -25,6 +25,12 @@ PyAPI_FUNC(int) PyErr_WarnExplicit(
const char *module, /* UTF-8 encoded string */
PyObject *registry);
+PyAPI_FUNC(int)
+PyErr_WarnExplicitFormat(PyObject *category,
+ const char *filename, int lineno,
+ const char *module, PyObject *registry,
+ const char *format, ...);
+
/* DEPRECATED: Use PyErr_WarnEx() instead. */
#ifndef Py_LIMITED_API
#define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)