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()
56 PyObject *warnings_str; in get_warnings_attr() local60 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()