fix #21076: turn signal module constants into enums

This commit is contained in:
Giampaolo Rodola' 2014-04-04 15:34:17 +02:00
parent bcc174615c
commit e09fb7198a
7 changed files with 138 additions and 8 deletions

View file

@ -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);
}