mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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>
This commit is contained in:
parent
e0bcfd0e4d
commit
204946986f
21 changed files with 56 additions and 36 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue