diff options
Diffstat (limited to 'siplib/tqtlib.c')
-rw-r--r-- | siplib/tqtlib.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/siplib/tqtlib.c b/siplib/tqtlib.c index 1628c83..702b679 100644 --- a/siplib/tqtlib.c +++ b/siplib/tqtlib.c @@ -151,11 +151,7 @@ PyObject *sip_api_invoke_slot(const sipSlot *slot, PyObject *sigargs) return Py_None; } -#if PY_MAJOR_VERSION >= 3 sfunc = PyMethod_New(slot->meth.mfunc, self); -#else - sfunc = PyMethod_New(slot->meth.mfunc, self, slot->meth.mclass); -#endif if (sfunc == NULL) { @@ -324,9 +320,6 @@ int sip_api_same_slot(const sipSlot *sp, PyObject *rxObj, const char *slot) return (sp->meth.mfunc == PyMethod_GET_FUNCTION(rxObj) && sp->meth.mself == PyMethod_GET_SELF(rxObj) -#if PY_MAJOR_VERSION < 3 - && sp->meth.mclass == PyMethod_GET_CLASS(rxObj) -#endif ); } |