[pywin32-checkins] pywin32/com/win32com/src PyIUnknown.cpp, 1.12.2.1, 1.12.2.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-09-07 02:17:08
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15031 Modified Files: Tag: py3k PyIUnknown.cpp Log Message: Return unicode from PyIUnknown::repr Index: PyIUnknown.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyIUnknown.cpp,v retrieving revision 1.12.2.1 retrieving revision 1.12.2.2 diff -C2 -d -r1.12.2.1 -r1.12.2.2 *** PyIUnknown.cpp 29 Aug 2008 08:27:37 -0000 1.12.2.1 --- PyIUnknown.cpp 7 Sep 2008 02:17:18 -0000 1.12.2.2 *************** *** 37,43 **** { // @comm The repr of this object displays both the object's address, and its attached IUnknown's address ! TCHAR buf[80]; ! wsprintf(buf, _T("<%hs at 0x%0lp with obj at 0x%0lp>"),ob_type->tp_name, this, m_obj); ! return PyString_FromTCHAR(buf); } --- 37,47 ---- { // @comm The repr of this object displays both the object's address, and its attached IUnknown's address ! char buf[256]; ! _snprintf(buf, 256, "<%hs at 0x%0lp with obj at 0x%0lp>", ob_type->tp_name, this, m_obj); ! #if (PY_VERSION_HEX < 0x03000000) ! return PyString_FromString(buf); ! #else ! return PyUnicode_FromString(buf); ! #endif } |