Searched refs:io_module (Results 1 – 3 of 3) sorted by relevance
982 auto io_module = PythonModule::Import("io"); in Check() local983 if (!io_module) { in Check()984 llvm::consumeError(io_module.takeError()); in Check()987 auto iobase = io_module.get().Get("IOBase"); in Check()1462 auto io_module = PythonModule::Import("io"); in ConvertToFileForcingUseOfScriptingIOMethods() local1463 if (!io_module) in ConvertToFileForcingUseOfScriptingIOMethods()1464 return io_module.takeError(); in ConvertToFileForcingUseOfScriptingIOMethods()1465 auto textIOBase = io_module.get().Get("TextIOBase"); in ConvertToFileForcingUseOfScriptingIOMethods()1468 auto rawIOBase = io_module.get().Get("RawIOBase"); in ConvertToFileForcingUseOfScriptingIOMethods()1471 auto bufferedIOBase = io_module.get().Get("BufferedIOBase"); in ConvertToFileForcingUseOfScriptingIOMethods()
468 if options.io_module:469 globals()['open'] = __import__(options.io_module, {}, {}, ['open']).open
2648 PyObject *io_module = PyImport_ImportModule("io"); in zoneinfomodule_exec() local2649 if (io_module == NULL) { in zoneinfomodule_exec()2653 io_open = PyObject_GetAttrString(io_module, "open"); in zoneinfomodule_exec()2654 Py_DECREF(io_module); in zoneinfomodule_exec()