diff Python/errors.c @ 40950:f3f0c697aa5b legacy-trunk

When printing an unraisable error, don't print exceptions. before the name. This duplicates the behavior whening normally printing exceptions.
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 26 Feb 2007 22:41:45 +0000
parents 45c73152b4ac
children c83acfb1a632
line wrap: on
line diff
--- a/Python/errors.c	Mon Feb 26 19:00:20 2007 +0000
+++ b/Python/errors.c	Mon Feb 26 22:41:45 2007 +0000
@@ -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);