summaryrefslogtreecommitdiff
path: root/Python/pystrhex.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-12 10:33:44 -0700
committerBenjamin Peterson <benjamin@python.org>2018-09-12 10:40:45 -0700
commitb21f3d99eeee630889b5d235cd3af646d620a6a9 (patch)
treea44be668e2beaee79da3ece92f1ac05e0ed4a7a6 /Python/pystrhex.c
parentf52237400b9960d434c5d0676a3479b8c1e8c869 (diff)
downloadcpython-git-b21f3d99eeee630889b5d235cd3af646d620a6a9.tar.gz
closes bpo-34646: Remove PyAPI_* macros from declarations.benjamin-pyapi
Diffstat (limited to 'Python/pystrhex.c')
-rw-r--r--Python/pystrhex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystrhex.c b/Python/pystrhex.c
index 6dbf32dcc4..c52f5cc62b 100644
--- a/Python/pystrhex.c
+++ b/Python/pystrhex.c
@@ -48,14 +48,14 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen,
return retval;
}
-PyAPI_FUNC(PyObject *) _Py_strhex(const char* argbuf, const Py_ssize_t arglen)
+PyObject * _Py_strhex(const char* argbuf, const Py_ssize_t arglen)
{
return _Py_strhex_impl(argbuf, arglen, 0);
}
/* Same as above but returns a bytes() instead of str() to avoid the
* need to decode the str() when bytes are needed. */
-PyAPI_FUNC(PyObject *) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen)
+PyObject * _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen)
{
return _Py_strhex_impl(argbuf, arglen, 1);
}