Commit cf8e1989 authored by Stefan Behnel's avatar Stefan Behnel

disable work-around for a now fixed CPython bug in Py3.5b1

parent 6844243a
...@@ -778,8 +778,8 @@ static int __pyx_Generator_init(void) { ...@@ -778,8 +778,8 @@ static int __pyx_Generator_init(void) {
/////////////// ReturnWithStopIteration.proto /////////////// /////////////// ReturnWithStopIteration.proto ///////////////
#if CYTHON_COMPILING_IN_CPYTHON #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030500B1
// CPython 3.3+ crashes in yield-from when the StopIteration is not instantiated // CPython 3.3 <= x < 3.5b1 crash in yield-from when the StopIteration is not instantiated
#define __Pyx_ReturnWithStopIteration(value) \ #define __Pyx_ReturnWithStopIteration(value) \
if (value == Py_None) PyErr_SetNone(PyExc_StopIteration); else __Pyx__ReturnWithStopIteration(value) if (value == Py_None) PyErr_SetNone(PyExc_StopIteration); else __Pyx__ReturnWithStopIteration(value)
static void __Pyx__ReturnWithStopIteration(PyObject* value); /*proto*/ static void __Pyx__ReturnWithStopIteration(PyObject* value); /*proto*/
...@@ -789,7 +789,7 @@ static void __Pyx__ReturnWithStopIteration(PyObject* value); /*proto*/ ...@@ -789,7 +789,7 @@ static void __Pyx__ReturnWithStopIteration(PyObject* value); /*proto*/
/////////////// ReturnWithStopIteration /////////////// /////////////// ReturnWithStopIteration ///////////////
#if CYTHON_COMPILING_IN_CPYTHON #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030500B1
static void __Pyx__ReturnWithStopIteration(PyObject* value) { static void __Pyx__ReturnWithStopIteration(PyObject* value) {
PyObject *exc, *args; PyObject *exc, *args;
args = PyTuple_New(1); args = PyTuple_New(1);
......
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