mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
parent
253021dd94
commit
a88b2f4e5e
1 changed files with 2 additions and 0 deletions
|
@ -435,6 +435,7 @@ tb_printinternal(PyTracebackObject *tb, PyObject *f, long limit)
|
|||
line = PyUnicode_FromFormat(
|
||||
" [Previous line repeated %d more times]\n", cnt-3);
|
||||
err = PyFile_WriteObject(line, f, Py_PRINT_RAW);
|
||||
Py_DECREF(line);
|
||||
}
|
||||
last_file = tb->tb_frame->f_code->co_filename;
|
||||
last_line = tb->tb_lineno;
|
||||
|
@ -456,6 +457,7 @@ tb_printinternal(PyTracebackObject *tb, PyObject *f, long limit)
|
|||
line = PyUnicode_FromFormat(
|
||||
" [Previous line repeated %d more times]\n", cnt-3);
|
||||
err = PyFile_WriteObject(line, f, Py_PRINT_RAW);
|
||||
Py_DECREF(line);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue