Home
last modified time | relevance | path

Searched refs:errors_module (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Modules/
Dpyexpat.c1639 PyObject *errors_module; in MODULE_INITFUNC() local
1696 errors_module = PyDict_GetItemWithError(d, errmod_name); in MODULE_INITFUNC()
1697 if (errors_module == NULL && !PyErr_Occurred()) { in MODULE_INITFUNC()
1698 errors_module = PyModule_New(MODULE_NAME ".errors"); in MODULE_INITFUNC()
1699 if (errors_module != NULL) { in MODULE_INITFUNC()
1700 _PyImport_SetModule(errmod_name, errors_module); in MODULE_INITFUNC()
1702 PyModule_AddObject(m, "errors", errors_module); in MODULE_INITFUNC()
1716 if (errors_module == NULL || model_module == NULL) { in MODULE_INITFUNC()
1762 if (PyModule_AddStringConstant(errors_module, #name, \ in MODULE_INITFUNC()
1817 if (PyModule_AddStringConstant(errors_module, "__doc__", in MODULE_INITFUNC()
[all …]
/external/python/cpython2/Modules/
Dpyexpat.c1838 PyObject *errors_module; in MODULE_INITFUNC() local
1897 errors_module = PyDict_GetItem(d, errmod_name); in MODULE_INITFUNC()
1898 if (errors_module == NULL) { in MODULE_INITFUNC()
1899 errors_module = PyModule_New(MODULE_NAME ".errors"); in MODULE_INITFUNC()
1900 if (errors_module != NULL) { in MODULE_INITFUNC()
1901 PyDict_SetItem(sys_modules, errmod_name, errors_module); in MODULE_INITFUNC()
1903 PyModule_AddObject(m, "errors", errors_module); in MODULE_INITFUNC()
1917 if (errors_module == NULL || model_module == NULL) in MODULE_INITFUNC()
1953 PyModule_AddStringConstant(errors_module, #name, \ in MODULE_INITFUNC()
1996 PyModule_AddStringConstant(errors_module, "__doc__", in MODULE_INITFUNC()