Home
last modified time | relevance | path

Searched refs:path_or_fd (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Modules/_io/
D_iomodule.c247 PyObject *raw, *modeobj = NULL, *buffer, *wrapper, *result = NULL, *path_or_fd = NULL; in _io_open_impl() local
257 path_or_fd = file; in _io_open_impl()
258 Py_INCREF(path_or_fd); in _io_open_impl()
260 path_or_fd = PyOS_FSPath(file); in _io_open_impl()
261 if (path_or_fd == NULL) { in _io_open_impl()
267 !PyUnicode_Check(path_or_fd) && in _io_open_impl()
268 !PyBytes_Check(path_or_fd)) { in _io_open_impl()
381 if (!config->legacy_windows_stdio && _PyIO_get_console_type(path_or_fd) != '\0') { in _io_open_impl()
387 path_or_fd, rawmode, in _io_open_impl()
396 Py_DECREF(path_or_fd); in _io_open_impl()
[all …]
Dwinconsoleio.c63 char _PyIO_get_console_type(PyObject *path_or_fd) { in _PyIO_get_console_type() argument
64 int fd = PyLong_AsLong(path_or_fd); in _PyIO_get_console_type()
76 if (!PyUnicode_FSDecoder(path_or_fd, &decoded)) { in _PyIO_get_console_type()