comparison Python/errors.c @ 42560:0fcc18aba385

PyErr_Warn is deprecated in 2.5 - goes away for 3.0
author Skip Montanaro <skip@pobox.com>
date Sun, 12 Aug 2007 11:44:53 +0000
parents 3772103200ec
children 61fb597917d1
comparison
equal deleted inserted replaced
42559:e781085ac989 42560:0fcc18aba385
668 Py_DECREF(res); 668 Py_DECREF(res);
669 return 0; 669 return 0;
670 } 670 }
671 } 671 }
672 672
673 /* PyErr_Warn is only for backwards compatability and will be removed.
674 Use PyErr_WarnEx instead. */
675
676 #undef PyErr_Warn
677
678 PyAPI_FUNC(int)
679 PyErr_Warn(PyObject *category, char *message)
680 {
681 return PyErr_WarnEx(category, message, 1);
682 }
683
684 /* Warning with explicit origin */ 673 /* Warning with explicit origin */
685 int 674 int
686 PyErr_WarnExplicit(PyObject *category, const char *message, 675 PyErr_WarnExplicit(PyObject *category, const char *message,
687 const char *filename, int lineno, 676 const char *filename, int lineno,
688 const char *module, PyObject *registry) 677 const char *module, PyObject *registry)