From 969f485cba75c017d55a4dad450f5e0331b49359 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Tue, 18 Jan 2005 15:26:11 +0000 Subject: -X died some time ago; remove a tiny bit of associated cruft. --- Python/errors.c | 4 ---- 1 file changed, 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) -- cgit v0.12