diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-26 22:22:47 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-26 22:22:47 +0000 |
commit | 6bd76333236905f873395513276f5480f34fe883 (patch) | |
tree | ed1563da12a9895965889370349f951341b26019 /Python/errors.c | |
parent | 9764eb6a26325ec098cf1df8afb687084bed8bb7 (diff) | |
download | cpython-6bd76333236905f873395513276f5480f34fe883.tar.gz |
Remove the exceptions builtin module, all the exceptions are already builtin.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 3 |
1 files changed, 2 insertions, 1 deletions
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("<unknown>", f); else { char* modstr = PyString_AsString(moduleName); - if (modstr) + if (modstr && + strcmp(modstr, "__builtin__") != 0) { PyFile_WriteString(modstr, f); PyFile_WriteString(".", f); |