Mercurial > cpython-lru_cache-weakref
diff Python/_warnings.c @ 62389:907f564476be
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 :-)
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Thu, 17 Jun 2010 23:08:50 +0000 |
| parents | deed5fce82d6 |
| children | 4893e4009f56 |
line wrap: on
line diff
--- a/Python/_warnings.c Thu Jun 17 21:43:33 2010 +0000 +++ b/Python/_warnings.c Thu Jun 17 23:08:50 2010 +0000 @@ -282,8 +282,7 @@ 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(); }
