Update of /cvsroot/pywin32/pywin32/win32/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16153/win32/src
Modified Files:
PyTime.cpp
Log Message:
Fix recent regression working with datetime objects
Index: PyTime.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/PyTime.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** PyTime.cpp 8 Jan 2009 02:56:17 -0000 1.23
--- PyTime.cpp 9 Jan 2009 01:27:44 -0000 1.24
***************
*** 143,147 ****
PyObject *newref = NULL;
BOOL rc;
! if (!PyWinTime_Check(ob)) {
if (!(ob = PyWin_NewTime(ob)))
return FALSE;
--- 143,147 ----
PyObject *newref = NULL;
BOOL rc;
! if (!PyWinTime_CHECK(ob)) {
if (!(ob = PyWin_NewTime(ob)))
return FALSE;
***************
*** 157,161 ****
PyObject *newref = NULL;
BOOL rc;
! if (!PyWinTime_Check(ob)) {
if (!(ob = PyWin_NewTime(ob)))
return FALSE;
--- 157,161 ----
PyObject *newref = NULL;
BOOL rc;
! if (!PyWinTime_CHECK(ob)) {
if (!(ob = PyWin_NewTime(ob)))
return FALSE;
***************
*** 170,174 ****
PyObject *newref = NULL;
BOOL rc;
! if (!PyWinTime_Check(ob)) {
if (!(ob = PyWin_NewTime(ob)))
return FALSE;
--- 170,174 ----
PyObject *newref = NULL;
BOOL rc;
! if (!PyWinTime_CHECK(ob)) {
if (!(ob = PyWin_NewTime(ob)))
return FALSE;
***************
*** 507,511 ****
PyObject *PyTime::richcompare(PyObject *other, int op)
{
! if (!PyWinTime_Check(other)){
PyErr_SetString(PyExc_TypeError, "PyTime cannot be compared to other types");
return NULL;
--- 507,511 ----
PyObject *PyTime::richcompare(PyObject *other, int op)
{
! if (!PyWinTime_CHECK(other)){
PyErr_SetString(PyExc_TypeError, "PyTime cannot be compared to other types");
return NULL;
|