commit | 0ecd30b4af4f5bd3c9e884a608e0a256ffe8f5fa | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Fri Feb 01 14:04:12 2013 -0500 |
committer | Brett Cannon <brett@python.org> | Fri Feb 01 14:04:12 2013 -0500 |
tree | 0405597273a346a2b543218253fad1b2c3038e64 | |
parent | 89fa86b0355a2dcfc8bbb5ebc6dfa1092dd82d19 [diff] [blame] |
Issue #17098: Make sure every module has __loader__ defined. Thanks to Thomas Heller for the bug report.
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 0aac98b..c81de6f 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c
@@ -1367,9 +1367,8 @@ void PyOS_InitInterrupts(void) { - PyObject *m = PyInit_signal(); + PyObject *m = PyImport_ImportModule("signal"); if (m) { - _PyImport_FixupBuiltin(m, "signal"); Py_DECREF(m); } }