Commit 2fa69547 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #27914: Fixed a comment in PyModule_ExcDef.

Patch by Xiang Zhang.
parent 5625950b
...@@ -380,7 +380,7 @@ PyModule_ExecDef(PyObject *module, PyModuleDef *def) ...@@ -380,7 +380,7 @@ PyModule_ExecDef(PyObject *module, PyModuleDef *def)
for (cur_slot = def->m_slots; cur_slot && cur_slot->slot; cur_slot++) { for (cur_slot = def->m_slots; cur_slot && cur_slot->slot; cur_slot++) {
switch (cur_slot->slot) { switch (cur_slot->slot) {
case Py_mod_create: case Py_mod_create:
/* handled in PyModule_CreateFromSlots */ /* handled in PyModule_FromDefAndSpec2 */
break; break;
case Py_mod_exec: case Py_mod_exec:
ret = ((int (*)(PyObject *))cur_slot->value)(module); ret = ((int (*)(PyObject *))cur_slot->value)(module);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment