Enable subtyping on rpm.ts class
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 24 Sep 2009 10:19:20 +0000 (13:19 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 24 Sep 2009 10:19:20 +0000 (13:19 +0300)
python/rpmts-py.c

index 348e2e8..cd5471c 100644 (file)
@@ -1072,7 +1072,7 @@ PyTypeObject rpmts_Type = {
        (getattrofunc) rpmts_getattro,  /* tp_getattro */
        (setattrofunc) rpmts_setattro,  /* tp_setattro */
        0,                              /* tp_as_buffer */
-       Py_TPFLAGS_DEFAULT,             /* tp_flags */
+       Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
        rpmts_doc,                      /* tp_doc */
        0,                              /* tp_traverse */
        0,                              /* tp_clear */