Commit ff02233a authored by Stefan Behnel's avatar Stefan Behnel

Minor code simplification.

parent 8833cbfa
...@@ -2746,10 +2746,8 @@ static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UIN ...@@ -2746,10 +2746,8 @@ static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UIN
// This should be an actual function (not a macro), such that we can put it // This should be an actual function (not a macro), such that we can put it
// directly in a tp_descr_get slot. // directly in a tp_descr_get slot.
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, CYTHON_UNUSED PyObject *typ) { static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, CYTHON_UNUSED PyObject *typ) {
if (!self) { if (!self)
Py_INCREF(func); return __Pyx_NewRef(func);
return func;
}
return PyMethod_New(func, self); return PyMethod_New(func, self);
} }
#else #else
......
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