Home
last modified time | relevance | path

Searched refs:iomod (Results 1 – 3 of 3) sorted by relevance

/third_party/python/Objects/
Dfileobject.c538 PyObject *iomod, *f = NULL; in PyFile_OpenCodeObject() local
550 iomod = PyImport_ImportModule("_io"); in PyFile_OpenCodeObject()
551 if (iomod) { in PyFile_OpenCodeObject()
552 f = _PyObject_CallMethodId(iomod, &PyId_open, "Os", in PyFile_OpenCodeObject()
554 Py_DECREF(iomod); in PyFile_OpenCodeObject()
/third_party/python/Python/
Dpylifecycle.c2279 PyObject *iomod = NULL, *wrapper; in init_set_builtins_open() local
2283 if (!(iomod = PyImport_ImportModule("io"))) { in init_set_builtins_open()
2291 if (!(wrapper = PyObject_GetAttrString(iomod, "open"))) { in init_set_builtins_open()
2308 Py_XDECREF(iomod); in init_set_builtins_open()
2317 PyObject *iomod = NULL; in init_sys_streams() local
2337 if (!(iomod = PyImport_ImportModule("io"))) { in init_sys_streams()
2347 std = create_stdio(config, iomod, fd, 0, "<stdin>", in init_sys_streams()
2358 std = create_stdio(config, iomod, fd, 1, "<stdout>", in init_sys_streams()
2370 std = create_stdio(config, iomod, fd, 1, "<stderr>", in init_sys_streams()
2407 Py_XDECREF(iomod); in init_sys_streams()
/third_party/python/Lib/test/
Dtest_io.py3524 iomod = self.io.__name__
3539 """.format(iomod=iomod, kwargs=kwargs)