Commit 073b3b90 authored by Stefan Behnel's avatar Stefan Behnel

Avoid some overindentation in the generated C code due to duplicated opening...

Avoid some overindentation in the generated C code due to duplicated opening braces inside of C macros.
parent 5f3e9178
...@@ -1244,10 +1244,11 @@ __Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value) ...@@ -1244,10 +1244,11 @@ __Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value)
PyObject *tmp; PyObject *tmp;
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
if (unlikely(value == NULL || !PyUnicode_Check(value))) { if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else #else
if (unlikely(value == NULL || !PyString_Check(value))) { if (unlikely(value == NULL || !PyString_Check(value)))
#endif #endif
{
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"__name__ must be set to a string object"); "__name__ must be set to a string object");
return -1; return -1;
...@@ -1275,10 +1276,11 @@ __Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value) ...@@ -1275,10 +1276,11 @@ __Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value)
PyObject *tmp; PyObject *tmp;
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
if (unlikely(value == NULL || !PyUnicode_Check(value))) { if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else #else
if (unlikely(value == NULL || !PyString_Check(value))) { if (unlikely(value == NULL || !PyString_Check(value)))
#endif #endif
{
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"__qualname__ must be set to a string object"); "__qualname__ must be set to a string object");
return -1; return -1;
......
...@@ -321,10 +321,11 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); ...@@ -321,10 +321,11 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
/////////////// GetException /////////////// /////////////// GetException ///////////////
#if CYTHON_FAST_THREAD_STATE #if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else #else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif #endif
{
PyObject *local_type, *local_value, *local_tb; PyObject *local_type, *local_value, *local_tb;
#if CYTHON_FAST_THREAD_STATE #if CYTHON_FAST_THREAD_STATE
PyObject *tmp_type, *tmp_value, *tmp_tb; PyObject *tmp_type, *tmp_value, *tmp_tb;
......
...@@ -509,10 +509,11 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje ...@@ -509,10 +509,11 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje
} }
#else #else
#if CYTHON_COMPILING_IN_PYPY #if CYTHON_COMPILING_IN_PYPY
if (is_list || (PySequence_Check(o) && !PyDict_Check(o))) { if (is_list || (PySequence_Check(o) && !PyDict_Check(o)))
#else #else
if (is_list || PySequence_Check(o)) { if (is_list || PySequence_Check(o))
#endif #endif
{
return PySequence_SetItem(o, i, v); return PySequence_SetItem(o, i, v);
} }
#endif #endif
......
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