Searched refs:import_str (Results 1 – 3 of 3) sorted by relevance
2839 static PyObject *import_str = NULL; in PyImport_Import() local2847 import_str = PyString_InternFromString("__import__"); in PyImport_Import()2848 if (import_str == NULL) in PyImport_Import()2879 import = PyObject_GetItem(builtins, import_str); in PyImport_Import()2881 PyErr_SetObject(PyExc_KeyError, import_str); in PyImport_Import()2884 import = PyObject_GetAttr(builtins, import_str); in PyImport_Import()
2725 static PyObject *import_str = NULL; in find_module() local2733 import_str = PyString_InternFromString("__import__"); in find_module()2734 if (import_str == NULL) in find_module()2765 import = PyObject_GetItem(builtins, import_str); in find_module()2767 PyErr_SetObject(PyExc_KeyError, import_str); in find_module()2770 import = PyObject_GetAttr(builtins, import_str); in find_module()