Skip to content
Snippets Groups Projects
Commit 539259698979 authored by Stefan Behnel's avatar Stefan Behnel
Browse files

Minor code simplification.

parent 750fde97d00d
No related branches found
No related tags found
No related merge requests found
......@@ -2746,10 +2746,8 @@
// This should be an actual function (not a macro), such that we can put it
// directly in a tp_descr_get slot.
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, CYTHON_UNUSED PyObject *typ) {
if (!self) {
Py_INCREF(func);
return func;
}
if (!self)
return __Pyx_NewRef(func);
return PyMethod_New(func, self);
}
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment