Commit b345988b authored by Stefan Behnel's avatar Stefan Behnel

remove spurious Py_DECREF(None) from 'raise ... from None' code

parent bddb52a8
...@@ -193,8 +193,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject ...@@ -193,8 +193,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject
#endif #endif
PyObject *fixed_cause; PyObject *fixed_cause;
if (cause == Py_None) { if (cause == Py_None) {
/* raise ... from None */ // raise ... from None
Py_DECREF(cause);
fixed_cause = NULL; fixed_cause = NULL;
} else if (PyExceptionClass_Check(cause)) { } else if (PyExceptionClass_Check(cause)) {
fixed_cause = PyObject_CallObject(cause, NULL); fixed_cause = PyObject_CallObject(cause, NULL);
......
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