summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2007-08-12 11:44:53 (GMT)
committerSkip Montanaro <skip@pobox.com>2007-08-12 11:44:53 (GMT)
commit46fc337395753e5b927f6dcccc549c54550b197e (patch)
tree36c450714b34d4ee7f5ae1d1490d4a1ecac254e8 /Python/errors.c
parent447e7c398158323af7757def0cf715fabfc707fa (diff)
downloadcpython-46fc337395753e5b927f6dcccc549c54550b197e.zip
cpython-46fc337395753e5b927f6dcccc549c54550b197e.tar.gz
cpython-46fc337395753e5b927f6dcccc549c54550b197e.tar.bz2
PyErr_Warn is deprecated in 2.5 - goes away for 3.0
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 3770522..62e63ab 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,