summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-02-26 22:41:45 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-02-26 22:41:45 (GMT)
commit88516a60398fff92dbf83c6ad17b03233f6db680 (patch)
tree7d4e06e3509b6196318028574d3d5bffae3a4410 /Python
parenta8925547815b5df48b5664b1cd6656d4234f759c (diff)
downloadcpython-88516a60398fff92dbf83c6ad17b03233f6db680.zip
cpython-88516a60398fff92dbf83c6ad17b03233f6db680.tar.gz
cpython-88516a60398fff92dbf83c6ad17b03233f6db680.tar.bz2
When printing an unraisable error, don't print exceptions. before the name.
This duplicates the behavior whening normally printing exceptions.
Diffstat (limited to 'Python')
-rw-r--r--Python/errors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index f31f025..9a23c05 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -603,7 +603,8 @@ PyErr_WriteUnraisable(PyObject *obj)
PyFile_WriteString("<unknown>", f);
else {
char* modstr = PyString_AsString(moduleName);
- if (modstr)
+ if (modstr &&
+ strcmp(modstr, "exceptions") != 0)
{
PyFile_WriteString(modstr, f);
PyFile_WriteString(".", f);