Home
last modified time | relevance | path

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

/third_party/python/Python/
D_warnings.c187 PyObject *warnings_module, *obj; in get_warnings_attr() local
197 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 = { variable
1391 return PyModuleDef_Init(&warnings_module); in _PyWarnings_Init()
Dpylifecycle.c1139 PyObject *warnings_module = PyImport_ImportModule("warnings"); in init_interp_main() local
1140 if (warnings_module == NULL) { in init_interp_main()
1144 Py_XDECREF(warnings_module); in init_interp_main()