Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
Dpyexpat.c1641 PyObject *model_module; in MODULE_INITFUNC() local
1706 model_module = PyDict_GetItemWithError(d, modelmod_name); in MODULE_INITFUNC()
1707 if (model_module == NULL && !PyErr_Occurred()) { in MODULE_INITFUNC()
1708 model_module = PyModule_New(MODULE_NAME ".model"); in MODULE_INITFUNC()
1709 if (model_module != NULL) { in MODULE_INITFUNC()
1710 _PyImport_SetModule(modelmod_name, model_module); in MODULE_INITFUNC()
1712 PyModule_AddObject(m, "model", model_module); in MODULE_INITFUNC()
1716 if (errors_module == NULL || model_module == NULL) { in MODULE_INITFUNC()
1835 #define MYCONST(c) PyModule_AddIntConstant(model_module, #c, c) in MODULE_INITFUNC()
1836 PyModule_AddStringConstant(model_module, "__doc__", in MODULE_INITFUNC()
/external/python/cpython2/Modules/
Dpyexpat.c1840 PyObject *model_module; in MODULE_INITFUNC() local
1907 model_module = PyDict_GetItem(d, modelmod_name); in MODULE_INITFUNC()
1908 if (model_module == NULL) { in MODULE_INITFUNC()
1909 model_module = PyModule_New(MODULE_NAME ".model"); in MODULE_INITFUNC()
1910 if (model_module != NULL) { in MODULE_INITFUNC()
1911 PyDict_SetItem(sys_modules, modelmod_name, model_module); in MODULE_INITFUNC()
1913 PyModule_AddObject(m, "model", model_module); in MODULE_INITFUNC()
1917 if (errors_module == NULL || model_module == NULL) in MODULE_INITFUNC()
2007 #define MYCONST(c) PyModule_AddIntConstant(model_module, #c, c) in MODULE_INITFUNC()
2008 PyModule_AddStringConstant(model_module, "__doc__", in MODULE_INITFUNC()