From: Michael W. Hudson Date: Tue, 18 Jan 2005 15:26:11 +0000 (+0000) Subject: -X died some time ago; remove a tiny bit of associated cruft. X-Git-Tag: v2.5a0~2100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=969f485cba75c017d55a4dad450f5e0331b49359;p=thirdparty%2FPython%2Fcpython.git -X died some time ago; remove a tiny bit of associated cruft. --- diff --git a/Python/errors.c b/Python/errors.c index 1da4cc33fa75..ce36fc1dee26 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)