diff Python/pythonrun.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 04f5cbc74424
children 61fee1853ca8
line wrap: on
line diff
--- a/Python/pythonrun.c	Mon Feb 26 22:21:25 2007 +0000
+++ b/Python/pythonrun.c	Mon Feb 26 22:22:47 2007 +0000
@@ -221,7 +221,6 @@
 
 	/* initialize builtin exceptions */
 	_PyExc_Init();
-	_PyImport_FixupExtension("exceptions", "exceptions");
 
 	/* phase 2 of builtins */
 	_PyImport_FixupExtension("__builtin__", "__builtin__");
@@ -1168,7 +1167,7 @@
 				err = PyFile_WriteString("<unknown>", f);
 			else {
 				char* modstr = PyString_AsString(moduleName);
-				if (modstr && strcmp(modstr, "exceptions"))
+				if (modstr && strcmp(modstr, "__builtin__"))
 				{
 					err = PyFile_WriteString(modstr, f);
 					err += PyFile_WriteString(".", f);