Update of /cvsroot/pywin32/pywin32/com/win32com/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv707/com/win32com/src
Modified Files:
PyComHelpers.cpp
Log Message:
Get things building with the various Python versions we support.
Index: PyComHelpers.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyComHelpers.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** PyComHelpers.cpp 31 May 2005 12:36:02 -0000 1.9
--- PyComHelpers.cpp 23 Oct 2005 11:33:52 -0000 1.10
***************
*** 86,92 ****
--- 86,94 ----
use_decimal=PyObject_IsTrue(__future_currency__);
if (!use_decimal && !warned_future_currency) {
+ #if (PY_VERSION_HEX >= 0x02030000)
PyErr_Warn(PyExc_FutureWarning,
"Currency objects will soon be changed so a decimal.Decimal instance is used."
"\n (set pythoncom.__future_currency__ to get these objects now.)");
+ #endif
warned_future_currency = TRUE;
}
|