Searched refs:warnings_module (Results 1 – 2 of 2) sorted by relevance
43 PyObject *warnings_module; in get_warnings_attr() local57 warnings_module = PyDict_GetItem(all_modules, warnings_str); in get_warnings_attr()58 if (!PyObject_HasAttrString(warnings_module, attr)) in get_warnings_attr()60 return PyObject_GetAttrString(warnings_module, attr); in get_warnings_attr()
270 PyObject *warnings_module = PyImport_ImportModule("warnings"); in Py_InitializeEx() local271 if (!warnings_module) in Py_InitializeEx()273 Py_XDECREF(warnings_module); in Py_InitializeEx()