mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #17098: Make sure every module has __loader__ defined.
Thanks to Thomas Heller for the bug report.
This commit is contained in:
parent
89fa86b035
commit
0ecd30b4af
4 changed files with 299 additions and 289 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue