diff options
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/errors.c b/Python/errors.c index 1da4cc3..ce36fc1 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -535,10 +535,6 @@ PyErr_NewException(char *name, PyObject *base, PyObject *dict) } if (base == NULL) base = PyExc_Exception; - if (!PyClass_Check(base)) { - /* Must be using string-based standard exceptions (-X) */ - return PyString_FromString(name); - } if (dict == NULL) { dict = mydict = PyDict_New(); if (dict == NULL) |