Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 969f485

Browse files
author
Michael W. Hudson
committed
-X died some time ago; remove a tiny bit of associated cruft.
1 parent b00e89f commit 969f485

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Python/errors.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,6 @@ PyErr_NewException(char *name, PyObject *base, PyObject *dict)
535535
}
536536
if (base == NULL)
537537
base = PyExc_Exception;
538-
if (!PyClass_Check(base)) {
539-
/* Must be using string-based standard exceptions (-X) */
540-
return PyString_FromString(name);
541-
}
542538
if (dict == NULL) {
543539
dict = mydict = PyDict_New();
544540
if (dict == NULL)

0 commit comments

Comments
 (0)