]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
-X died some time ago; remove a tiny bit of associated cruft.
authorMichael W. Hudson <mwh@python.net>
Tue, 18 Jan 2005 15:26:11 +0000 (15:26 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 18 Jan 2005 15:26:11 +0000 (15:26 +0000)
Python/errors.c

index 1da4cc33fa750bb38b7f7698b34c6d97e492f43d..ce36fc1dee2671431cf4da37e0a81134b3615d44 100644 (file)
@@ -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)