Searched refs:warnings_str (Results 1 – 2 of 2) sorted by relevance
41 static PyObject *warnings_str = NULL; in get_warnings_attr() local46 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()
183 PyObject *warnings_str; in get_warnings_attr() local187 warnings_str = _PyUnicode_FromId(&PyId_warnings); in get_warnings_attr()188 if (warnings_str == NULL) { in get_warnings_attr()194 warnings_module = PyImport_Import(warnings_str); in get_warnings_attr()212 warnings_module = PyImport_GetModule(warnings_str); in get_warnings_attr()