summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-03-15 04:58:47 +0000
committerGuido van Rossum <guido@python.org>2006-03-15 04:58:47 +0000
commit00afb9f78ca7fc455d01f7601c72585e315c6a92 (patch)
tree2ec1004441e72aa27340fae645455ef0ac6522c7 /Python/errors.c
parent80639cba1fbfcb81b2c7a1dc6e61a9312cf67b1a (diff)
downloadcpython-00afb9f78ca7fc455d01f7601c72585e315c6a92.tar.gz
Checkpoint. 218 tests are okay; 53 are failing. Done so far:
- all classes are new-style (but ripping out classobject.[ch] isn't done) - int/int -> float - all exceptions must derive from BaseException - absolute import - 'as' and 'with' are keywords
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 7fc4c97c82..a64900bfd2 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -557,7 +557,8 @@ PyErr_NewException(char *name, PyObject *base, PyObject *dict)
bases = PyTuple_Pack(1, base);
if (bases == NULL)
goto failure;
- result = PyClass_New(bases, dict, classname);
+ result = PyObject_CallFunction((PyObject *) (base->ob_type),
+ "OOO", classname, bases, dict);
failure:
Py_XDECREF(bases);
Py_XDECREF(mydict);