Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
D_warnings.c57 PyObject *warnings_module, *obj; in get_warnings_attr() local
67 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()
Dpylifecycle.c976 PyObject *warnings_module = PyImport_ImportModule("warnings"); in _Py_InitializeMainInterpreter() local
977 if (warnings_module == NULL) { in _Py_InitializeMainInterpreter()
981 Py_XDECREF(warnings_module); in _Py_InitializeMainInterpreter()
/external/python/cpython2/Python/
D_warnings.c43 PyObject *warnings_module; in get_warnings_attr() local
57 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()
Dpythonrun.c277 PyObject *warnings_module = PyImport_ImportModule("warnings"); in Py_InitializeEx() local
278 if (!warnings_module) in Py_InitializeEx()
280 Py_XDECREF(warnings_module); in Py_InitializeEx()