]> granicus.if.org Git - python/commitdiff
Issue #27914: Fixed a comment in PyModule_ExcDef.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 26 Sep 2016 20:14:44 +0000 (23:14 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 26 Sep 2016 20:14:44 +0000 (23:14 +0300)
Patch by Xiang Zhang.

Objects/moduleobject.c

index d88b06aea4bbe83a86b90de343de7ccbcdecd994..dcae1c4da5894c61509a8ca09ceb2f00f7acb631 100644 (file)
@@ -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);