mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
fix #21076: turn signal module constants into enums
This commit is contained in:
parent
bcc174615c
commit
e09fb7198a
7 changed files with 138 additions and 8 deletions
|
@ -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