diff options
-rw-r--r-- | python/header-py.c | 2 | ||||
-rw-r--r-- | python/rpmds-py.c | 4 | ||||
-rw-r--r-- | python/rpmfd-py.c | 2 | ||||
-rw-r--r-- | python/rpmfi-py.c | 2 | ||||
-rw-r--r-- | python/rpmkeyring-py.c | 4 | ||||
-rw-r--r-- | python/rpmmi-py.c | 2 | ||||
-rw-r--r-- | python/rpmps-py.c | 2 | ||||
-rw-r--r-- | python/rpmtd-py.c | 2 | ||||
-rw-r--r-- | python/rpmts-py.c | 2 | ||||
-rw-r--r-- | python/spec-py.c | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/python/header-py.c b/python/header-py.c index e51ef0be7..18a7e66b9 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -395,7 +395,7 @@ static PyObject *hdr_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) static void hdr_dealloc(hdrObject * s) { if (s->h) headerFree(s->h); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static PyObject * hdr_iternext(hdrObject *s) diff --git a/python/rpmds-py.c b/python/rpmds-py.c index 71ef93fde..8938cc7a1 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -199,7 +199,7 @@ rpmds_iternext(rpmdsObject * s) rpmTag tagN = rpmdsTagN(s->ds); rpmsenseFlags Flags = rpmdsFlags(s->ds); - result = rpmds_Wrap(s->ob_type, rpmdsSingle(tagN, N, EVR, Flags) ); + result = rpmds_Wrap(Py_TYPE(s), rpmdsSingle(tagN, N, EVR, Flags) ); } else s->active = 0; @@ -381,7 +381,7 @@ static void rpmds_dealloc(rpmdsObject * s) { s->ds = rpmdsFree(s->ds); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static Py_ssize_t rpmds_length(rpmdsObject * s) diff --git a/python/rpmfd-py.c b/python/rpmfd-py.c index 077cf9e1f..193d8e87f 100644 --- a/python/rpmfd-py.c +++ b/python/rpmfd-py.c @@ -107,7 +107,7 @@ static void rpmfd_dealloc(rpmfdObject *s) { PyObject *res = do_close(s); Py_XDECREF(res); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static PyObject *rpmfd_fileno(rpmfdObject *s) diff --git a/python/rpmfi-py.c b/python/rpmfi-py.c index 5894ef4f2..5484a1bac 100644 --- a/python/rpmfi-py.c +++ b/python/rpmfi-py.c @@ -258,7 +258,7 @@ static void rpmfi_dealloc(rpmfiObject * s) { s->fi = rpmfiFree(s->fi); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static int diff --git a/python/rpmkeyring-py.c b/python/rpmkeyring-py.c index 7b57fdbea..00be981a6 100644 --- a/python/rpmkeyring-py.c +++ b/python/rpmkeyring-py.c @@ -11,7 +11,7 @@ struct rpmPubkeyObject_s { static void rpmPubkey_dealloc(rpmPubkeyObject * s) { s->pubkey = rpmPubkeyFree(s->pubkey); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static PyObject *rpmPubkey_new(PyTypeObject *subtype, @@ -103,7 +103,7 @@ struct rpmKeyringObject_s { static void rpmKeyring_dealloc(rpmKeyringObject * s) { rpmKeyringFree(s->keyring); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static PyObject *rpmKeyring_new(PyTypeObject *subtype, diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c index b3cd6d2ab..0a871534d 100644 --- a/python/rpmmi-py.c +++ b/python/rpmmi-py.c @@ -129,7 +129,7 @@ static void rpmmi_dealloc(rpmmiObject * s) { s->mi = rpmdbFreeIterator(s->mi); Py_DECREF(s->ref); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static Py_ssize_t rpmmi_length(rpmmiObject * s) diff --git a/python/rpmps-py.c b/python/rpmps-py.c index dae50e64d..1b08e2f21 100644 --- a/python/rpmps-py.c +++ b/python/rpmps-py.c @@ -175,7 +175,7 @@ static void rpmps_dealloc(rpmpsObject * s) { s->ps = rpmpsFree(s->ps); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static int diff --git a/python/rpmtd-py.c b/python/rpmtd-py.c index 1911e2535..aae4b27f1 100644 --- a/python/rpmtd-py.c +++ b/python/rpmtd-py.c @@ -117,7 +117,7 @@ static PyObject *rpmtd_new(PyTypeObject * subtype, PyObject *args, PyObject *kwd static void rpmtd_dealloc(rpmtdObject * s) { rpmtdFreeData(&(s->td)); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static int rpmtd_length(rpmtdObject *s) diff --git a/python/rpmts-py.c b/python/rpmts-py.c index e228736ca..df0f5908d 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -677,7 +677,7 @@ static void rpmts_dealloc(rpmtsObject * s) s->ts = rpmtsFree(s->ts); Py_XDECREF(s->scriptFd); - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } static PyObject * rpmts_new(PyTypeObject * subtype, PyObject *args, PyObject *kwds) diff --git a/python/spec-py.c b/python/spec-py.c index 409db0d8c..fb362f7e3 100644 --- a/python/spec-py.c +++ b/python/spec-py.c @@ -40,7 +40,7 @@ spec_dealloc(specObject * s) if (s->spec) { s->spec=freeSpec(s->spec); } - s->ob_type->tp_free((PyObject *)s); + Py_TYPE(s)->tp_free((PyObject *)s); } /* XXX TODO return something sensible if spec exists but component (eg %clean) |