diff options
-rw-r--r-- | python/header-py.c | 2 | ||||
-rw-r--r-- | python/rpmds-py.c | 3 | ||||
-rw-r--r-- | python/rpmfi-py.c | 2 | ||||
-rw-r--r-- | python/rpmmi-py.c | 2 | ||||
-rw-r--r-- | python/rpmps-py.c | 2 | ||||
-rw-r--r-- | python/rpmte-py.c | 2 | ||||
-rw-r--r-- | python/spec-py.c | 2 |
7 files changed, 8 insertions, 7 deletions
diff --git a/python/header-py.c b/python/header-py.c index 9bd05c010..0f940afa1 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -487,7 +487,7 @@ PyTypeObject hdr_Type = { (getattrofunc) hdr_getattro, /* tp_getattro */ (setattrofunc) hdr_setattro, /* tp_setattro */ 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ hdr_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ diff --git a/python/rpmds-py.c b/python/rpmds-py.c index 8750dda0f..ab227c41d 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -459,7 +459,8 @@ PyTypeObject rpmds_Type = { PyObject_GenericSetAttr, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT | /* tp_flags */ - Py_TPFLAGS_HAVE_RICHCOMPARE, + Py_TPFLAGS_HAVE_RICHCOMPARE | + Py_TPFLAGS_BASETYPE, rpmds_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ diff --git a/python/rpmfi-py.c b/python/rpmfi-py.c index 3ce3e2d84..ee20904f7 100644 --- a/python/rpmfi-py.c +++ b/python/rpmfi-py.c @@ -337,7 +337,7 @@ PyTypeObject rpmfi_Type = { PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericSetAttr, /* tp_setattro */ 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ rpmfi_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c index d6ab095a1..70584fff4 100644 --- a/python/rpmmi-py.c +++ b/python/rpmmi-py.c @@ -160,7 +160,7 @@ PyTypeObject rpmmi_Type = { PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericSetAttr, /* tp_setattro */ 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ rpmmi_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ diff --git a/python/rpmps-py.c b/python/rpmps-py.c index b343ee394..439d8a081 100644 --- a/python/rpmps-py.c +++ b/python/rpmps-py.c @@ -138,7 +138,7 @@ PyTypeObject rpmps_Type = { PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericSetAttr, /* tp_setattro */ 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ rpmps_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ diff --git a/python/rpmte-py.c b/python/rpmte-py.c index 55a26c9e4..a0412ba45 100644 --- a/python/rpmte-py.c +++ b/python/rpmte-py.c @@ -291,7 +291,7 @@ PyTypeObject rpmte_Type = { PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericSetAttr, /* tp_setattro */ 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ rpmte_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ diff --git a/python/spec-py.c b/python/spec-py.c index 85f2d104c..c401f2379 100644 --- a/python/spec-py.c +++ b/python/spec-py.c @@ -196,7 +196,7 @@ PyTypeObject spec_Type = { 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ - Py_TPFLAGS_DEFAULT, /*tp_flags*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /*tp_flags*/ spec_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ |