diff options
author | Victor Stinner <vstinner@python.org> | 2020-10-26 22:19:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 22:19:22 (GMT) |
commit | c8c4200b65b2159bbb13cee10d67dfb3676fef26 (patch) | |
tree | f34af496fa9843ccc7b1bc596e26b8adf000fe1d /Modules/_abc.c | |
parent | 920cb647ba23feab7987d0dac1bd63bfc2ffc4c0 (diff) | |
download | cpython-c8c4200b65b2159bbb13cee10d67dfb3676fef26.zip cpython-c8c4200b65b2159bbb13cee10d67dfb3676fef26.tar.gz cpython-c8c4200b65b2159bbb13cee10d67dfb3676fef26.tar.bz2 |
bpo-42157: Convert unicodedata.UCD to heap type (GH-22991)
Convert the unicodedata extension module to the multiphase
initialization API (PEP 489) and convert the unicodedata.UCD static
type to a heap type.
Co-Authored-By: Mohamed Koubaa <koubaa.m@gmail.com>
Diffstat (limited to 'Modules/_abc.c')
-rw-r--r-- | Modules/_abc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/_abc.c b/Modules/_abc.c index 709b52f..7afaa75 100644 --- a/Modules/_abc.c +++ b/Modules/_abc.c @@ -891,14 +891,14 @@ static PyModuleDef_Slot _abcmodule_slots[] = { static struct PyModuleDef _abcmodule = { PyModuleDef_HEAD_INIT, - "_abc", - _abc__doc__, - sizeof(_abcmodule_state), - _abcmodule_methods, - _abcmodule_slots, - _abcmodule_traverse, - _abcmodule_clear, - _abcmodule_free, + .m_name = "_abc", + .m_doc = _abc__doc__, + .m_size = sizeof(_abcmodule_state), + .m_methods = _abcmodule_methods, + .m_slots = _abcmodule_slots, + .m_traverse = _abcmodule_traverse, + .m_clear = _abcmodule_clear, + .m_free = _abcmodule_free, }; PyMODINIT_FUNC |