[pywin32-checkins] pywin32/win32/src PyTime.cpp,1.28,1.29
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-03-17 04:33:05
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2452/src Modified Files: PyTime.cpp Log Message: fix and test for failure comparing PyTime to None etc Index: PyTime.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/PyTime.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** PyTime.cpp 28 Jan 2009 10:54:41 -0000 1.28 --- PyTime.cpp 17 Mar 2009 04:32:48 -0000 1.29 *************** *** 437,443 **** { if (!PyWinTime_CHECK(other)){ ! PyErr_SetString(PyExc_TypeError, "PyTime cannot be compared to other types"); ! return NULL; ! } DATE other_time = ((PyTime *)other)->m_time; PyObject *ret; --- 437,443 ---- { if (!PyWinTime_CHECK(other)){ ! Py_INCREF(Py_NotImplemented); ! return Py_NotImplemented; ! } DATE other_time = ((PyTime *)other)->m_time; PyObject *ret; |