mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Fix a bug introduced by the warnings rewrite where tracebacks were being
improperly indented. Closes issue #2699.
This commit is contained in:
parent
f30f6e8216
commit
141534e56f
3 changed files with 47 additions and 4 deletions
|
@ -222,8 +222,6 @@ tb_displayline(PyObject *f, const char *filename, int lineno, const char *name)
|
|||
err = PyFile_WriteString(linebuf, f);
|
||||
if (err != 0)
|
||||
return err;
|
||||
|
||||
err = PyFile_WriteString(" ", f);
|
||||
return Py_DisplaySourceLine(f, filename, lineno);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue