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/sysmodule.c | |
parent | a692c4df63a41c42f2ce10a4521136d1440a712d (diff) | |
download | cpython-9f4f48114fbf2df3803a44a30cd14e11679403fe.zip cpython-9f4f48114fbf2df3803a44a30cd14e11679403fe.tar.gz cpython-9f4f48114fbf2df3803a44a30cd14e11679403fe.tar.bz2 |
Use PyErr_WarnPy3k throughout
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 8c82d45..83d7d68 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -172,10 +172,8 @@ sys_exc_clear(PyObject *self, PyObject *noargs) PyThreadState *tstate; PyObject *tmp_type, *tmp_value, *tmp_tb; - if (Py_Py3kWarningFlag && - PyErr_Warn(PyExc_DeprecationWarning, - "sys.exc_clear() not supported in 3.x; " - "use except clauses") < 0) + if (PyErr_WarnPy3k("sys.exc_clear() not supported in 3.x; " + "use except clauses", 1) < 0) return NULL; tstate = PyThreadState_GET(); |