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 | c490c586e8e96c5968deabe2c6b99bb0d1f0cee6 (patch) | |
tree | f982553bf4e21cf533abd8c95ad9900dba529d44 /Python/errors.c | |
parent | aeaf1c2394768bb93116d25fea2052fff3ee3e94 (diff) | |
download | cpython-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.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, |