fix importing one char extension modules (closes #24328)

This commit is contained in:
Benjamin Peterson 2015-05-29 17:10:30 -05:00
parent a663121e10
commit e20056c8f7
4 changed files with 27 additions and 10 deletions

View file

@ -321,6 +321,14 @@ PyInitU_eckzbwbhc6jpgzcx415x(PyObject *spec)
return PyModuleDef_Init(&def_nonascii_kana);
}
/*** Module with a single-character name ***/
PyMODINIT_FUNC
PyInit_x(PyObject *spec)
{
return PyModuleDef_Init(&main_def);
}
/**** Testing NULL slots ****/
static PyModuleDef null_slots_def = TEST_MODULE_DEF(