Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dfileobject.c550 PyObject *iomod, *f = NULL; in PyFile_OpenCodeObject() local
562 iomod = PyImport_ImportModule("_io"); in PyFile_OpenCodeObject()
563 if (iomod) { in PyFile_OpenCodeObject()
564 f = _PyObject_CallMethodId(iomod, &PyId_open, "Os", in PyFile_OpenCodeObject()
566 Py_DECREF(iomod); in PyFile_OpenCodeObject()
/external/python/cpython3/Python/
Dpylifecycle.c1914 PyObject *iomod = NULL, *wrapper; in init_set_builtins_open() local
1918 if (!(iomod = PyImport_ImportModule("io"))) { in init_set_builtins_open()
1926 if (!(wrapper = PyObject_GetAttrString(iomod, "OpenWrapper"))) { in init_set_builtins_open()
1943 Py_XDECREF(iomod); in init_set_builtins_open()
1952 PyObject *iomod = NULL; in init_sys_streams() local
1985 if (!(iomod = PyImport_ImportModule("io"))) { in init_sys_streams()
1995 std = create_stdio(config, iomod, fd, 0, "<stdin>", in init_sys_streams()
2006 std = create_stdio(config, iomod, fd, 1, "<stdout>", in init_sys_streams()
2018 std = create_stdio(config, iomod, fd, 1, "<stderr>", in init_sys_streams()
2055 Py_XDECREF(iomod); in init_sys_streams()
/external/python/cpython3/Lib/test/
Dtest_io.py3493 iomod = self.io.__name__
3508 """.format(iomod=iomod, kwargs=kwargs)