Commit 464f389c authored by Stefan Behnel's avatar Stefan Behnel

ignore 'raise ... from None' in Py<3.3

parent 23d54261
...@@ -186,7 +186,11 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject ...@@ -186,7 +186,11 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject
goto bad; goto bad;
} }
#if PY_VERSION_HEX >= 0x03030000
if (cause) { if (cause) {
#else
if (cause && cause != Py_None) {
#endif
PyObject *fixed_cause; PyObject *fixed_cause;
if (cause == Py_None) { if (cause == Py_None) {
/* raise ... from None */ /* raise ... from None */
......
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