summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-01-18 15:26:11 (GMT)
committerMichael W. Hudson <mwh@python.net>2005-01-18 15:26:11 (GMT)
commit969f485cba75c017d55a4dad450f5e0331b49359 (patch)
tree2c16f45c069dcfc0d55ad8da7dd5dda9c3435974 /Python
parentb00e89faab0d69feb040118bbc5ea6149e91867f (diff)
downloadcpython-969f485cba75c017d55a4dad450f5e0331b49359.zip
cpython-969f485cba75c017d55a4dad450f5e0331b49359.tar.gz
cpython-969f485cba75c017d55a4dad450f5e0331b49359.tar.bz2
-X died some time ago; remove a tiny bit of associated cruft.
Diffstat (limited to 'Python')
-rw-r--r--Python/errors.c4
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)