diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-04-27 03:01:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-04-27 03:01:45 (GMT) |
commit | 9f4f48114fbf2df3803a44a30cd14e11679403fe (patch) | |
tree | 701fc350aa3a6ebf282fdb92e891c793f65db0fb /Python/ceval.c | |
parent | a692c4df63a41c42f2ce10a4521136d1440a712d (diff) | |
download | cpython-9f4f48114fbf2df3803a44a30cd14e11679403fe.zip cpython-9f4f48114fbf2df3803a44a30cd14e11679403fe.tar.gz cpython-9f4f48114fbf2df3803a44a30cd14e11679403fe.tar.bz2 |
Use PyErr_WarnPy3k throughout
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 7c7116c..c085851 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3164,9 +3164,9 @@ do_raise(PyObject *type, PyObject *value, PyObject *tb) assert(PyExceptionClass_Check(type)); if (Py_Py3kWarningFlag && PyClass_Check(type)) { - if (PyErr_Warn(PyExc_DeprecationWarning, + if (PyErr_WarnEx(PyExc_DeprecationWarning, "exceptions must derive from BaseException " - "in 3.x") == -1) + "in 3.x", 1) == -1) goto raise_error; } |