Searched refs:path_or_fd (Results 1 – 2 of 2) sorted by relevance
245 PyObject *raw, *modeobj = NULL, *buffer, *wrapper, *result = NULL, *path_or_fd = NULL; in _io_open_impl() local255 path_or_fd = file; in _io_open_impl()256 Py_INCREF(path_or_fd); in _io_open_impl()258 path_or_fd = PyOS_FSPath(file); in _io_open_impl()259 if (path_or_fd == NULL) { in _io_open_impl()265 !PyUnicode_Check(path_or_fd) && in _io_open_impl()266 !PyBytes_Check(path_or_fd)) { in _io_open_impl()379 if (!config->legacy_windows_stdio && _PyIO_get_console_type(path_or_fd) != '\0') { in _io_open_impl()385 path_or_fd, rawmode, in _io_open_impl()394 Py_DECREF(path_or_fd); in _io_open_impl()[all …]
63 char _PyIO_get_console_type(PyObject *path_or_fd) { in _PyIO_get_console_type() argument64 int fd = PyLong_AsLong(path_or_fd); in _PyIO_get_console_type()79 if (!PyUnicode_FSDecoder(path_or_fd, &decoded)) { in _PyIO_get_console_type()