diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-05-26 17:43:53 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-05-26 17:43:53 (GMT) |
commit | dacde0d6ae72451ef102aa98ca36b733277d15bb (patch) | |
tree | 5fe8889292d15688bca575f2e208d544ec7562ff /Python | |
parent | eeb2b21ab0ecc3f10a51eea989ba6c2f1f01a9bd (diff) | |
download | cpython-dacde0d6ae72451ef102aa98ca36b733277d15bb.zip cpython-dacde0d6ae72451ef102aa98ca36b733277d15bb.tar.gz cpython-dacde0d6ae72451ef102aa98ca36b733277d15bb.tar.bz2 |
turn PyErr_WarnPy3k into a macro
Diffstat (limited to 'Python')
-rw-r--r-- | Python/_warnings.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c index 9783745..0adb0c8 100644 --- a/Python/_warnings.c +++ b/Python/_warnings.c @@ -775,15 +775,6 @@ PyErr_WarnExplicit(PyObject *category, const char *text, } -int -PyErr_WarnPy3k(const char *text, Py_ssize_t stacklevel) -{ - if (Py_Py3kWarningFlag) - return PyErr_WarnEx(PyExc_DeprecationWarning, text, stacklevel); - return 0; -} - - PyDoc_STRVAR(warn_doc, "Issue a warning, or maybe ignore it or raise an exception."); |