From 88516a60398fff92dbf83c6ad17b03233f6db680 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 26 Feb 2007 22:41:45 +0000 Subject: When printing an unraisable error, don't print exceptions. before the name. This duplicates the behavior whening normally printing exceptions. --- Python/errors.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Python/errors.c') diff --git a/Python/errors.c b/Python/errors.c index f31f025112e..9a23c052828 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -603,7 +603,8 @@ PyErr_WriteUnraisable(PyObject *obj) PyFile_WriteString("", f); else { char* modstr = PyString_AsString(moduleName); - if (modstr) + if (modstr && + strcmp(modstr, "exceptions") != 0) { PyFile_WriteString(modstr, f); PyFile_WriteString(".", f); -- cgit v1.2.3