mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
merge along w/ fix for issue #2107 (commit c9239171e429)
This commit is contained in:
commit
815a6f38a6
7 changed files with 139 additions and 9 deletions
|
@ -956,7 +956,7 @@ the first is the signal number, the second is the interrupted stack frame.");
|
|||
|
||||
static struct PyModuleDef signalmodule = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"signal",
|
||||
"_signal",
|
||||
module_doc,
|
||||
-1,
|
||||
signal_methods,
|
||||
|
@ -967,7 +967,7 @@ static struct PyModuleDef signalmodule = {
|
|||
};
|
||||
|
||||
PyMODINIT_FUNC
|
||||
PyInit_signal(void)
|
||||
PyInit__signal(void)
|
||||
{
|
||||
PyObject *m, *d, *x;
|
||||
int i;
|
||||
|
@ -1380,7 +1380,7 @@ PyErr_SetInterrupt(void)
|
|||
void
|
||||
PyOS_InitInterrupts(void)
|
||||
{
|
||||
PyObject *m = PyImport_ImportModule("signal");
|
||||
PyObject *m = PyImport_ImportModule("_signal");
|
||||
if (m) {
|
||||
Py_DECREF(m);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue