summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-05-07 17:16:01 (GMT)
committerGitHub <noreply@github.com>2020-05-07 17:16:01 (GMT)
commitc068b53a0ca6ebf740d98e422569d2f705e54f93 (patch)
tree0fed9b2a2aa790fb2ca8acb835270cc2357cf5ce /Modules
parenta1d9e0accd33af1d8e90fc48b34c13d7b07dcf57 (diff)
downloadcpython-c068b53a0ca6ebf740d98e422569d2f705e54f93.zip
cpython-c068b53a0ca6ebf740d98e422569d2f705e54f93.tar.gz
cpython-c068b53a0ca6ebf740d98e422569d2f705e54f93.tar.bz2
bpo-38787: Update structures.rst docs (PEP 573) (GH-19980)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testmultiphase.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c
index 3084fc1..d69ae62 100644
--- a/Modules/_testmultiphase.c
+++ b/Modules/_testmultiphase.c
@@ -820,16 +820,12 @@ static PyModuleDef_Slot meth_state_access_slots[] = {
};
static PyModuleDef def_meth_state_access = {
- PyModuleDef_HEAD_INIT, /* m_base */
- "_testmultiphase_meth_state_access", /* m_name */
- PyDoc_STR("Module testing access"
- " to state from methods."),
- sizeof(meth_state), /* m_size */
- NULL, /* m_methods */
- meth_state_access_slots, /* m_slots */
- 0, /* m_traverse */
- 0, /* m_clear */
- 0, /* m_free */
+ PyModuleDef_HEAD_INIT,
+ .m_name = "_testmultiphase_meth_state_access",
+ .m_doc = PyDoc_STR("Module testing access"
+ " to state from methods."),
+ .m_size = sizeof(meth_state),
+ .m_slots = meth_state_access_slots,
};
PyMODINIT_FUNC