Searched refs:warnings_module (Results 1 – 2 of 2) sorted by relevance
187 PyObject *warnings_module, *obj; in get_warnings_attr() local197 warnings_module = PyImport_Import(warnings_str); in get_warnings_attr()198 if (warnings_module == NULL) { in get_warnings_attr()215 warnings_module = PyImport_GetModule(warnings_str); in get_warnings_attr()216 if (warnings_module == NULL) in get_warnings_attr()220 (void)_PyObject_LookupAttrId(warnings_module, attr_id, &obj); in get_warnings_attr()221 Py_DECREF(warnings_module); in get_warnings_attr()1378 static struct PyModuleDef warnings_module = { variable1391 return PyModuleDef_Init(&warnings_module); in _PyWarnings_Init()
1139 PyObject *warnings_module = PyImport_ImportModule("warnings"); in init_interp_main() local1140 if (warnings_module == NULL) { in init_interp_main()1144 Py_XDECREF(warnings_module); in init_interp_main()