Home
last modified time | relevance | path

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

/external/python/cpython2/Python/
D_warnings.c41 static PyObject *warnings_str = NULL; in get_warnings_attr() local
46 if (warnings_str == NULL) { in get_warnings_attr()
47 warnings_str = PyString_InternFromString("warnings"); in get_warnings_attr()
48 if (warnings_str == NULL) in get_warnings_attr()
53 result = PyDict_Contains(all_modules, warnings_str); in get_warnings_attr()
57 warnings_module = PyDict_GetItem(all_modules, warnings_str); in get_warnings_attr()
/external/python/cpython3/Python/
D_warnings.c56 PyObject *warnings_str; in get_warnings_attr() local
60 warnings_str = _PyUnicode_FromId(&PyId_warnings); in get_warnings_attr()
61 if (warnings_str == NULL) { in get_warnings_attr()
67 warnings_module = PyImport_Import(warnings_str); in get_warnings_attr()
85 warnings_module = PyImport_GetModule(warnings_str); in get_warnings_attr()