diff options
author | Skip Montanaro <skip@pobox.com> | 2007-08-12 11:44:53 +0000 |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2007-08-12 11:44:53 +0000 |
commit | 46fc337395753e5b927f6dcccc549c54550b197e (patch) | |
tree | 36c450714b34d4ee7f5ae1d1490d4a1ecac254e8 /Python/errors.c | |
parent | 447e7c398158323af7757def0cf715fabfc707fa (diff) | |
download | cpython-git-46fc337395753e5b927f6dcccc549c54550b197e.tar.gz |
PyErr_Warn is deprecated in 2.5 - goes away for 3.0
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Python/errors.c b/Python/errors.c index 3770522735..62e63ab91e 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -670,17 +670,6 @@ PyErr_WarnEx(PyObject *category, const char *message, Py_ssize_t stack_level) } } -/* 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, |