summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2007-08-12 11:44:53 +0000
committerSkip Montanaro <skip@pobox.com>2007-08-12 11:44:53 +0000
commitc490c586e8e96c5968deabe2c6b99bb0d1f0cee6 (patch)
treef982553bf4e21cf533abd8c95ad9900dba529d44 /Python/errors.c
parentaeaf1c2394768bb93116d25fea2052fff3ee3e94 (diff)
downloadcpython-c490c586e8e96c5968deabe2c6b99bb0d1f0cee6.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.c11
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,