From: Panu Matilainen Date: Tue, 27 Oct 2009 12:52:08 +0000 (+0200) Subject: Remove explicit Py_TPFLAGS_HAVE_RICHCOMPARE from ds type flags X-Git-Tag: rpm-4.8.0-beta1~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=376b1bd8b79392a3d8a019c0409c05c13b55f2b2;p=platform%2Fupstream%2Frpm.git Remove explicit Py_TPFLAGS_HAVE_RICHCOMPARE from ds type flags - HAVE_RICHCOMPARE is included in Py_TPFLAGS_DEFAULT since at least Python 2.3 which is as far back as we care, no need to explicitly set it. Eliminating the unnecessary flag removes another Python 3 compatibility issue as the flag is gone there. --- diff --git a/python/rpmds-py.c b/python/rpmds-py.c index f45c908..1f95bf6 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -472,9 +472,7 @@ PyTypeObject rpmds_Type = { PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericSetAttr, /* tp_setattro */ 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | /* tp_flags */ - Py_TPFLAGS_HAVE_RICHCOMPARE | - Py_TPFLAGS_BASETYPE, + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE /* tp_flags */ rpmds_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */