Searched refs:path_or_fd (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Modules/_io/ |
D | _iomodule.c | 246 PyObject *raw, *modeobj = NULL, *buffer, *wrapper, *result = NULL, *path_or_fd = NULL; in _io_open_impl() local 256 path_or_fd = file; in _io_open_impl() 257 Py_INCREF(path_or_fd); in _io_open_impl() 259 path_or_fd = PyOS_FSPath(file); in _io_open_impl() 260 if (path_or_fd == NULL) { in _io_open_impl() 266 !PyUnicode_Check(path_or_fd) && in _io_open_impl() 267 !PyBytes_Check(path_or_fd)) { in _io_open_impl() 370 if (!Py_LegacyWindowsStdioFlag && _PyIO_get_console_type(path_or_fd) != '\0') { in _io_open_impl() 376 "OsiO", path_or_fd, rawmode, closefd, opener); in _io_open_impl() 383 Py_DECREF(path_or_fd); in _io_open_impl() [all …]
|
D | winconsoleio.c | 62 char _PyIO_get_console_type(PyObject *path_or_fd) { in _PyIO_get_console_type() argument 63 int fd = PyLong_AsLong(path_or_fd); in _PyIO_get_console_type() 78 if (!PyUnicode_FSDecoder(path_or_fd, &decoded)) { in _PyIO_get_console_type()
|