summaryrefslogtreecommitdiff
path: root/Python/_warnings.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-12 12:06:42 -0700
committerGitHub <noreply@github.com>2018-09-12 12:06:42 -0700
commite5024517811ee990b770fca0ba7058742d00e032 (patch)
tree6da191463cc8ff17b6c4ec4e4479015e851d5244 /Python/_warnings.c
parent019f0a0cb85ebc234356415f3638b9bd77528e55 (diff)
downloadcpython-git-e5024517811ee990b770fca0ba7058742d00e032.tar.gz
closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)
Diffstat (limited to 'Python/_warnings.c')
-rw-r--r--Python/_warnings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 2229206b25..8e1c01d0b2 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -1004,7 +1004,7 @@ PyErr_WarnEx(PyObject *category, const char *text, Py_ssize_t stack_level)
#undef PyErr_Warn
-PyAPI_FUNC(int)
+int
PyErr_Warn(PyObject *category, const char *text)
{
return PyErr_WarnEx(category, text, 1);