Searched refs:warnings_module (Results 1 – 4 of 4) sorted by relevance
57 PyObject *warnings_module, *obj; in get_warnings_attr() local67 warnings_module = PyImport_Import(warnings_str); in get_warnings_attr()68 if (warnings_module == NULL) { in get_warnings_attr()85 warnings_module = PyImport_GetModule(warnings_str); in get_warnings_attr()86 if (warnings_module == NULL) in get_warnings_attr()90 (void)_PyObject_LookupAttrId(warnings_module, attr_id, &obj); in get_warnings_attr()91 Py_DECREF(warnings_module); in get_warnings_attr()
976 PyObject *warnings_module = PyImport_ImportModule("warnings"); in _Py_InitializeMainInterpreter() local977 if (warnings_module == NULL) { in _Py_InitializeMainInterpreter()981 Py_XDECREF(warnings_module); in _Py_InitializeMainInterpreter()
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()
277 PyObject *warnings_module = PyImport_ImportModule("warnings"); in Py_InitializeEx() local278 if (!warnings_module) in Py_InitializeEx()280 Py_XDECREF(warnings_module); in Py_InitializeEx()