From 2633c69fae7e413b2b64b01d8c0c901ae649a225 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 26 Feb 2007 22:22:47 +0000 Subject: Remove the exceptions builtin module, all the exceptions are already builtin. --- 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 0e565c1cc0..e00d3ec16f 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -612,7 +612,8 @@ PyErr_WriteUnraisable(PyObject *obj) PyFile_WriteString("", f); else { char* modstr = PyString_AsString(moduleName); - if (modstr) + if (modstr && + strcmp(modstr, "__builtin__") != 0) { PyFile_WriteString(modstr, f); PyFile_WriteString(".", f); -- cgit v1.2.1