summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-02-01 19:04:12 (GMT)
committerBrett Cannon <brett@python.org>2013-02-01 19:04:12 (GMT)
commit0ecd30b4af4f5bd3c9e884a608e0a256ffe8f5fa (patch)
tree0405597273a346a2b543218253fad1b2c3038e64 /Modules
parent89fa86b0355a2dcfc8bbb5ebc6dfa1092dd82d19 (diff)
downloadcpython-0ecd30b4af4f5bd3c9e884a608e0a256ffe8f5fa.zip
cpython-0ecd30b4af4f5bd3c9e884a608e0a256ffe8f5fa.tar.gz
cpython-0ecd30b4af4f5bd3c9e884a608e0a256ffe8f5fa.tar.bz2
Issue #17098: Make sure every module has __loader__ defined.
Thanks to Thomas Heller for the bug report.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/signalmodule.c3
1 files changed, 1 insertions, 2 deletions
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 @@ PyErr_SetInterrupt(void)
void
PyOS_InitInterrupts(void)
{
- PyObject *m = PyInit_signal();
+ PyObject *m = PyImport_ImportModule("signal");
if (m) {
- _PyImport_FixupBuiltin(m, "signal");
Py_DECREF(m);
}
}