summaryrefslogtreecommitdiffstats
path: root/Python/_warnings.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-06-17 23:23:37 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-06-17 23:23:37 (GMT)
commit25bb0fdb67d03a47ee2193219fa0af2f191d4568 (patch)
treebe67ba53efbffa6755a1dce8ec340a0bba2f9453 /Python/_warnings.c
parent9b16326e5d0a640bc78bbc357edb1f6455fd9a6b (diff)
downloadcpython-25bb0fdb67d03a47ee2193219fa0af2f191d4568.zip
cpython-25bb0fdb67d03a47ee2193219fa0af2f191d4568.tar.gz
cpython-25bb0fdb67d03a47ee2193219fa0af2f191d4568.tar.bz2
Merged revisions 82059,82061 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82059 | victor.stinner | 2010-06-18 01:08:50 +0200 (ven., 18 juin 2010) | 5 lines 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 :-) ........ r82061 | victor.stinner | 2010-06-18 01:17:37 +0200 (ven., 18 juin 2010) | 2 lines Issue #6543: Mention the author of the patch, Amaury Forgeot d'Arc ........
Diffstat (limited to 'Python/_warnings.c')
-rw-r--r--Python/_warnings.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 9453844..56e8b3a 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();
}