mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Remove sys.exc_type, sys.exc_value, sys.exc_traceback
This commit is contained in:
parent
fc85c92a85
commit
ac3625fcb9
16 changed files with 36 additions and 58 deletions
|
@ -179,10 +179,6 @@ sys_exc_clear(PyObject *self, PyObject *noargs)
|
|||
Py_XDECREF(tmp_type);
|
||||
Py_XDECREF(tmp_value);
|
||||
Py_XDECREF(tmp_tb);
|
||||
/* For b/w compatibility */
|
||||
PySys_SetObject("exc_type", Py_None);
|
||||
PySys_SetObject("exc_value", Py_None);
|
||||
PySys_SetObject("exc_traceback", Py_None);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue