diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-27 14:52:08 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-27 14:52:08 +0200 |
commit | 376b1bd8b79392a3d8a019c0409c05c13b55f2b2 (patch) | |
tree | cc9131e9f58937e073be22aedbc3e232c6bb67b6 /python/rpmds-py.c | |
parent | 2222e81e1cf74bbf78acb9969592ab06e2289929 (diff) | |
download | rpm-376b1bd8b79392a3d8a019c0409c05c13b55f2b2.tar.gz rpm-376b1bd8b79392a3d8a019c0409c05c13b55f2b2.tar.bz2 rpm-376b1bd8b79392a3d8a019c0409c05c13b55f2b2.zip |
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.
Diffstat (limited to 'python/rpmds-py.c')
-rw-r--r-- | python/rpmds-py.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 */ |