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
commit45aecf451a64fb1ebe5e74d0b00965ac8d99dff6 (patch)
treea7edcfb45ceafcffde68a3542aeba67089ea81cb /Python/errors.c
parentf3175f6341ae207543a0d2d3be36c457349066e6 (diff)
downloadcpython-git-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.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);