Update of /cvsroot/pywin32/pywin32/com/win32com/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28488/com/win32com/src
Modified Files:
PythonCOM.cpp
Log Message:
PyErr_WarnEx doesn't exist in 2.4 and earlier
Index: PythonCOM.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PythonCOM.cpp,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** PythonCOM.cpp 8 Jan 2009 02:45:31 -0000 1.56
--- PythonCOM.cpp 8 Jan 2009 22:35:50 -0000 1.57
***************
*** 18,21 ****
--- 18,23 ----
#include "PyComTypeObjects.h"
#include "OleAcc.h" // for ObjectFromLresult proto...
+ #include "pyerrors.h" // for PyErr_Warn in 2.5 and earlier...
+
extern int PyCom_RegisterCoreIIDs(PyObject *dict);
***************
*** 744,748 ****
static PyObject *pythoncom_MakeIID(PyObject *self, PyObject *args)
{
! PyErr_WarnEx(PyExc_PendingDeprecationWarning, "MakeIID is deprecated - please use pywintypes.IID() instead.", 1);
return PyWinMethod_NewIID(self, args);
}
--- 746,750 ----
static PyObject *pythoncom_MakeIID(PyObject *self, PyObject *args)
{
! PyErr_Warn(PyExc_PendingDeprecationWarning, "MakeIID is deprecated - please use pywintypes.IID() instead.");
return PyWinMethod_NewIID(self, args);
}
***************
*** 751,755 ****
static PyObject *pythoncom_MakeTime(PyObject *self, PyObject *args)
{
! PyErr_WarnEx(PyExc_PendingDeprecationWarning, "MakeTime is deprecated - please use pywintypes.Time() instead.", 1);
return PyWinMethod_NewTime(self, args);
}
--- 753,757 ----
static PyObject *pythoncom_MakeTime(PyObject *self, PyObject *args)
{
! PyErr_Warn(PyExc_PendingDeprecationWarning, "MakeTime is deprecated - please use pywintypes.Time() instead.");
return PyWinMethod_NewTime(self, args);
}
|