commit | 88516a60398fff92dbf83c6ad17b03233f6db680 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Mon Feb 26 22:41:45 2007 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Mon Feb 26 22:41:45 2007 +0000 |
tree | 7d4e06e3509b6196318028574d3d5bffae3a4410 | |
parent | a8925547815b5df48b5664b1cd6656d4234f759c [diff] |
When printing an unraisable error, don't print exceptions. before the name. This duplicates the behavior whening normally printing exceptions.
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 @@ 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);