summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-02-26 22:22:47 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-02-26 22:22:47 +0000
commit6bd76333236905f873395513276f5480f34fe883 (patch)
treeed1563da12a9895965889370349f951341b26019 /Python/pythonrun.c
parent9764eb6a26325ec098cf1df8afb687084bed8bb7 (diff)
downloadcpython-6bd76333236905f873395513276f5480f34fe883.tar.gz
Remove the exceptions builtin module, all the exceptions are already builtin.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index ec1bc4292d..7501456ca8 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -221,7 +221,6 @@ Py_InitializeEx(int install_sigs)
/* initialize builtin exceptions */
_PyExc_Init();
- _PyImport_FixupExtension("exceptions", "exceptions");
/* phase 2 of builtins */
_PyImport_FixupExtension("__builtin__", "__builtin__");
@@ -1168,7 +1167,7 @@ PyErr_Display(PyObject *exception, PyObject *value, PyObject *tb)
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);