Mercurial > cpython-lru_cache-weakref
diff 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 |
line wrap: on
line diff
--- a/Python/errors.c Sun Aug 12 07:11:25 2007 +0000 +++ b/Python/errors.c Sun Aug 12 11:44:53 2007 +0000 @@ -670,17 +670,6 @@ } } -/* PyErr_Warn is only for backwards compatability and will be removed. - Use PyErr_WarnEx instead. */ - -#undef PyErr_Warn - -PyAPI_FUNC(int) -PyErr_Warn(PyObject *category, char *message) -{ - return PyErr_WarnEx(category, message, 1); -} - /* Warning with explicit origin */ int PyErr_WarnExplicit(PyObject *category, const char *message,
