Home | History | Annotate | Download | only in Python

Lines Matching full:sys_stream

141 isatty_no_error(PyObject *sys_stream)
143 PyObject *sys_isatty = PyObject_CallMethod(sys_stream, "isatty", "");
167 PyObject *sys_stream;
352 sys_stream = PySys_GetObject("stdin");
353 if ((overridden || isatty_no_error(sys_stream)) &&
354 PyFile_Check(sys_stream)) {
355 if (!PyFile_SetEncodingAndErrors(sys_stream, icodeset, errors))
359 sys_stream = PySys_GetObject("stdout");
360 if ((overridden || isatty_no_error(sys_stream)) &&
361 PyFile_Check(sys_stream)) {
362 if (!PyFile_SetEncodingAndErrors(sys_stream, codeset, errors))
366 sys_stream = PySys_GetObject("stderr");
367 if ((overridden || isatty_no_error(sys_stream)) &&
368 PyFile_Check(sys_stream)) {
369 if (!PyFile_SetEncodingAndErrors(sys_stream, codeset, errors))