[Python-checkins] r53975 - python/trunk/Python/errors.c
neal.norwitz
python-checkins at python.org
Tue Feb 27 00:48:30 CET 2007
Author: neal.norwitz
Date: Tue Feb 27 00:48:27 2007
New Revision: 53975
Modified:
python/trunk/Python/errors.c
Log:
SF #1669182, 2.5 was already fixed. Just assert in 2.6 since string exceptions
are gone.
Modified: python/trunk/Python/errors.c
==============================================================================
--- python/trunk/Python/errors.c (original)
+++ python/trunk/Python/errors.c Tue Feb 27 00:48:27 2007
@@ -590,8 +590,9 @@
PyFile_WriteString("Exception ", f);
if (t) {
PyObject* moduleName;
- char* className = PyExceptionClass_Name(t);
-
+ char* className;
+ assert(PyExceptionClass_Check(t));
+ className = PyExceptionClass_Name(t);
if (className != NULL) {
char *dot = strrchr(className, '.');
if (dot != NULL)
More information about the Python-checkins
mailing list