[pywin32-checkins] pywin32/win32/src PyUnicode.cpp,1.19,1.20
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-05-26 08:51:45
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8998 Modified Files: PyUnicode.cpp Log Message: Indicate the type of the object that caused us to raise a TypeError. Index: PyUnicode.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/PyUnicode.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** PyUnicode.cpp 24 Nov 2003 09:13:11 -0000 1.19 --- PyUnicode.cpp 26 May 2004 08:51:33 -0000 1.20 *************** *** 136,140 **** if (!PyString_Check(stringObject)) { ! PyErr_SetString(PyExc_TypeError, "The object must be a string or unicode object"); return FALSE; } --- 136,141 ---- if (!PyString_Check(stringObject)) { ! PyErr_Format(PyExc_TypeError, "The object must be a string or unicode object (got '%s')", ! stringObject->ob_type->tp_name); return FALSE; } |