[pywin32-checkins] pywin32/win32/src PyTime.cpp,1.25,1.26
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2009-01-26 01:23:45
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12129/win32/src Modified Files: PyTime.cpp Log Message: ensure Format() always returns a unicode object on py3k Index: PyTime.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/PyTime.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** PyTime.cpp 26 Jan 2009 00:47:31 -0000 1.25 --- PyTime.cpp 26 Jan 2009 01:23:38 -0000 1.26 *************** *** 202,206 **** if (!_tcsftime(szBuffer, 256/*_countof()*/, fmt, &tm)) szBuffer[0] = '\0'; // Better error? ! PyObject *rc = PyWinObject_FromTCHAR(szBuffer); if (bFreeString) PyWinObject_FreeTCHAR(fmt); return rc; --- 202,206 ---- if (!_tcsftime(szBuffer, 256/*_countof()*/, fmt, &tm)) szBuffer[0] = '\0'; // Better error? ! PyObject *rc = PyWinCoreString_FromString(szBuffer); if (bFreeString) PyWinObject_FreeTCHAR(fmt); return rc; |