diff Python/errors.c @ 40949:e759fd8d95ae

Remove the exceptions builtin module, all the exceptions are already builtin.
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 26 Feb 2007 22:22:47 +0000
parents 67287ca4e1e8
children 06145fbc7ab9
line wrap: on
line diff
--- a/Python/errors.c	Mon Feb 26 22:21:25 2007 +0000
+++ b/Python/errors.c	Mon Feb 26 22:22:47 2007 +0000
@@ -612,7 +612,8 @@
 				PyFile_WriteString("<unknown>", f);
 			else {
 				char* modstr = PyString_AsString(moduleName);
-				if (modstr)
+				if (modstr &&
+				    strcmp(modstr, "__builtin__") != 0)
 				{
 					PyFile_WriteString(modstr, f);
 					PyFile_WriteString(".", f);