mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Renamed _testXXX to _testcapiXXX. Jack is my hero -- good call!
This commit is contained in:
parent
693291ba23
commit
d66595fe42
8 changed files with 50 additions and 33 deletions
|
|
@ -56,13 +56,13 @@ static PyMethodDef TestMethods[] = {
|
|||
};
|
||||
|
||||
DL_EXPORT(void)
|
||||
init_test(void)
|
||||
init_testcapi(void)
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
m = Py_InitModule("_test", TestMethods);
|
||||
m = Py_InitModule("_testcapi", TestMethods);
|
||||
|
||||
TestError = PyErr_NewException("_test.error", NULL, NULL);
|
||||
TestError = PyErr_NewException("_testcapi.error", NULL, NULL);
|
||||
d = PyModule_GetDict(m);
|
||||
PyDict_SetItemString(d, "error", TestError);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue