[pywin32-checkins] pywin32/win32/src PyTime.cpp,1.19.2.3,1.19.2.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-01-09 01:28:50
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16188/win32/src Modified Files: Tag: py3k 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.19.2.3 retrieving revision 1.19.2.4 diff -C2 -d -r1.19.2.3 -r1.19.2.4 *** PyTime.cpp 8 Jan 2009 03:45:50 -0000 1.19.2.3 --- PyTime.cpp 9 Jan 2009 01:28:43 -0000 1.19.2.4 *************** *** 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; |