Commit e0a7aded authored by Denis Bilenko's avatar Denis Bilenko

remove unused code

parent ee8b52be
static void handle_error(PyObject* loop, PyObject* arg) { static void handle_error(PyObject* loop, PyObject* arg) {
PyThreadState *tstate; PyThreadState *tstate;
PyObject *type, *value, *traceback, *handler, *result; PyObject *type, *value, *traceback, *handler, *result, *tuple;
int reported; int reported;
tstate = PyThreadState_GET(); tstate = PyThreadState_GET();
type = tstate->curexc_type; type = tstate->curexc_type;
...@@ -19,13 +19,7 @@ static void handle_error(PyObject* loop, PyObject* arg) { ...@@ -19,13 +19,7 @@ static void handle_error(PyObject* loop, PyObject* arg) {
handler = PyObject_GetAttrString(loop, "handle_error"); handler = PyObject_GetAttrString(loop, "handle_error");
if (handler) { if (handler) {
if (handler != Py_None) { if (handler != Py_None) {
PyObject* tuple; tuple = PyTuple_New(4);
if (arg) {
tuple = PyTuple_New(4);
}
else {
tuple = PyTuple_New(3);
}
if (tuple) { if (tuple) {
reported = 1; reported = 1;
Py_INCREF(arg); Py_INCREF(arg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment