Remove explicit Py_TPFLAGS_HAVE_RICHCOMPARE from ds type flags
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 27 Oct 2009 12:52:08 +0000 (14:52 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 27 Oct 2009 12:52:08 +0000 (14:52 +0200)
- 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

index f45c908..1f95bf6 100644 (file)
@@ -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 */