summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-26 20:14:44 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-26 20:14:44 (GMT)
commit333ad92ec2d399873f5bf3a55a081830db4bedc1 (patch)
treefbae5cfbc97e47fa227292fb81bb85ca1e0138ce
parent11179b2ed7e2d6a5f790fa3b449a1e57473455e7 (diff)
downloadcpython-333ad92ec2d399873f5bf3a55a081830db4bedc1.zip
cpython-333ad92ec2d399873f5bf3a55a081830db4bedc1.tar.gz
cpython-333ad92ec2d399873f5bf3a55a081830db4bedc1.tar.bz2
Issue #27914: Fixed a comment in PyModule_ExcDef.
Patch by Xiang Zhang.
-rw-r--r--Objects/moduleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index d88b06a..dcae1c4 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -380,7 +380,7 @@ PyModule_ExecDef(PyObject *module, PyModuleDef *def)
for (cur_slot = def->m_slots; cur_slot && cur_slot->slot; cur_slot++) {
switch (cur_slot->slot) {
case Py_mod_create:
- /* handled in PyModule_CreateFromSlots */
+ /* handled in PyModule_FromDefAndSpec2 */
break;
case Py_mod_exec:
ret = ((int (*)(PyObject *))cur_slot->value)(module);