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
#endif
PyObject *fixed_cause;
if (cause == Py_None) {
/* raise ... from None */
Py_DECREF(cause);
// raise ... from None
fixed_cause = NULL;
} else if (PyExceptionClass_Check(cause)) {
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