Index: Python/sysmodule.c =================================================================== --- Python/sysmodule.c (revision 61467) +++ Python/sysmodule.c (working copy) @@ -169,6 +169,11 @@ static PyObject * sys_exc_clear(PyObject *self, PyObject *noargs) { + if(Py_Py3kWarningFlag && + PyErr_Warn(PyExc_DeprecationWarning, + "sys.exc_clear() not supported in 3.x. Use except statements.") < 0) + return NULL; + PyThreadState *tstate = PyThreadState_GET(); PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type;