Home
last modified time | relevance | path

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

/external/python/cpython2/Python/
D_warnings.c252 PyObject *f_stderr; in show_warning() local
262 f_stderr = PySys_GetObject("stderr"); in show_warning()
263 if (f_stderr == NULL) { in show_warning()
270 PyFile_WriteObject(filename, f_stderr, Py_PRINT_RAW); in show_warning()
271 PyFile_WriteString(lineno_str, f_stderr); in show_warning()
272 PyFile_WriteObject(name, f_stderr, Py_PRINT_RAW); in show_warning()
273 PyFile_WriteString(": ", f_stderr); in show_warning()
274 PyFile_WriteObject(text, f_stderr, Py_PRINT_RAW); in show_warning()
275 PyFile_WriteString("\n", f_stderr); in show_warning()
285 PyFile_WriteString(source_line_str, f_stderr); in show_warning()
[all …]
/external/python/cpython3/Python/
D_warnings.c491 PyObject *f_stderr; in show_warning() local
502 f_stderr = _PySys_GetObjectId(&PyId_stderr); in show_warning()
503 if (f_stderr == NULL) { in show_warning()
509 if (PyFile_WriteObject(filename, f_stderr, Py_PRINT_RAW) < 0) in show_warning()
511 if (PyFile_WriteString(lineno_str, f_stderr) < 0) in show_warning()
513 if (PyFile_WriteObject(name, f_stderr, Py_PRINT_RAW) < 0) in show_warning()
515 if (PyFile_WriteString(": ", f_stderr) < 0) in show_warning()
517 if (PyFile_WriteObject(text, f_stderr, Py_PRINT_RAW) < 0) in show_warning()
519 if (PyFile_WriteString("\n", f_stderr) < 0) in show_warning()
547 PyFile_WriteObject(sourceline, f_stderr, Py_PRINT_RAW); in show_warning()
[all …]