summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-02-11 16:22:11 (GMT)
committerGitHub <noreply@github.com>2022-02-11 16:22:11 (GMT)
commit204946986feee7bc80b233350377d24d20fcb1b8 (patch)
treee66ab16090f97845e0f95f981c720954e244d102 /Modules/cjkcodecs
parente0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b (diff)
downloadcpython-204946986feee7bc80b233350377d24d20fcb1b8.zip
cpython-204946986feee7bc80b233350377d24d20fcb1b8.tar.gz
cpython-204946986feee7bc80b233350377d24d20fcb1b8.tar.bz2
bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081)
* Make PyType_GetModuleByDef public (remove underscore) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r--Modules/cjkcodecs/multibytecodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c
index df48a0d..acfe966 100644
--- a/Modules/cjkcodecs/multibytecodec.c
+++ b/Modules/cjkcodecs/multibytecodec.c
@@ -33,7 +33,7 @@ static struct PyModuleDef _multibytecodecmodule;
static _multibytecodec_state *
_multibyte_codec_find_state_by_type(PyTypeObject *type)
{
- PyObject *module = _PyType_GetModuleByDef(type, &_multibytecodecmodule);
+ PyObject *module = PyType_GetModuleByDef(type, &_multibytecodecmodule);
assert(module != NULL);
return _multibytecodec_get_state(module);
}