diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-17 23:08:50 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-17 23:08:50 +0000 |
commit | 0fe25a445d5e72450a8d611faed75f65ba57c0bc (patch) | |
tree | bb0225a38220360cb4ae5451b68d2c954bf3525d /Python/_warnings.c | |
parent | 870f09a7f4296712de404dccea1c3a7bf52f66c3 (diff) | |
download | cpython-git-0fe25a445d5e72450a8d611faed75f65ba57c0bc.tar.gz |
Issue #6543: Write the traceback in the terminal encoding instead of utf-8.
Fix the encoding of the modules filename.
Reindent also traceback.h, just because I hate tabs :-)
Diffstat (limited to 'Python/_warnings.c')
-rw-r--r-- | Python/_warnings.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c index b1b2b71b8d..55f7fda94f 100644 --- a/Python/_warnings.c +++ b/Python/_warnings.c @@ -282,8 +282,7 @@ show_warning(PyObject *filename, int lineno, PyObject *text, PyObject PyFile_WriteString("\n", f_stderr); } else - if (_Py_DisplaySourceLine(f_stderr, _PyUnicode_AsString(filename), - lineno, 2) < 0) + if (_Py_DisplaySourceLine(f_stderr, filename, lineno, 2) < 0) return; PyErr_Clear(); } |