Searched refs:warnings_module (Results 1 – 4 of 4) 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()
244 PyObject *warnings_module = PyImport_ImportModule("warnings"); in Py_InitializeEx() local245 if (!warnings_module) in Py_InitializeEx()247 Py_XDECREF(warnings_module); in Py_InitializeEx()
256 PyObject *warnings_module = PyImport_ImportModule("warnings"); in Py_InitializeEx() local257 if (!warnings_module) in Py_InitializeEx()259 Py_XDECREF(warnings_module); in Py_InitializeEx()