Lines Matching refs:sys_stream
148 isatty_no_error(PyObject *sys_stream) in isatty_no_error() argument
150 PyObject *sys_isatty = PyObject_CallMethod(sys_stream, "isatty", ""); in isatty_no_error()
174 PyObject *sys_stream; in Py_InitializeEx() local
359 sys_stream = PySys_GetObject("stdin"); in Py_InitializeEx()
360 if ((overridden || isatty_no_error(sys_stream)) && in Py_InitializeEx()
361 PyFile_Check(sys_stream)) { in Py_InitializeEx()
362 if (!PyFile_SetEncodingAndErrors(sys_stream, icodeset, errors)) in Py_InitializeEx()
366 sys_stream = PySys_GetObject("stdout"); in Py_InitializeEx()
367 if ((overridden || isatty_no_error(sys_stream)) && in Py_InitializeEx()
368 PyFile_Check(sys_stream)) { in Py_InitializeEx()
369 if (!PyFile_SetEncodingAndErrors(sys_stream, codeset, errors)) in Py_InitializeEx()
373 sys_stream = PySys_GetObject("stderr"); in Py_InitializeEx()
374 if ((overridden || isatty_no_error(sys_stream)) && in Py_InitializeEx()
375 PyFile_Check(sys_stream)) { in Py_InitializeEx()
376 if (!PyFile_SetEncodingAndErrors(sys_stream, codeset, errors)) in Py_InitializeEx()