comparison Python/errors.c @ 34440:ed4dc05ea4b8 legacy-trunk

-X died some time ago; remove a tiny bit of associated cruft.
author Michael W. Hudson <mwh@python.net>
date Tue, 18 Jan 2005 15:26:11 +0000
parents 846b3ee7e106
children 30aef3ce2b26
comparison
equal deleted inserted replaced
34439:775a72b9d52c 34440:ed4dc05ea4b8
533 "PyErr_NewException: name must be module.class"); 533 "PyErr_NewException: name must be module.class");
534 return NULL; 534 return NULL;
535 } 535 }
536 if (base == NULL) 536 if (base == NULL)
537 base = PyExc_Exception; 537 base = PyExc_Exception;
538 if (!PyClass_Check(base)) {
539 /* Must be using string-based standard exceptions (-X) */
540 return PyString_FromString(name);
541 }
542 if (dict == NULL) { 538 if (dict == NULL) {
543 dict = mydict = PyDict_New(); 539 dict = mydict = PyDict_New();
544 if (dict == NULL) 540 if (dict == NULL)
545 goto failure; 541 goto failure;
546 } 542 }