From 376b1bd8b79392a3d8a019c0409c05c13b55f2b2 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 27 Oct 2009 14:52:08 +0200 Subject: 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. --- python/rpmds-py.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'python/rpmds-py.c') diff --git a/python/rpmds-py.c b/python/rpmds-py.c index f45c908ce..1f95bf610 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 */ -- cgit v1.2.3