summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/acquire.cc6
-rw-r--r--python/cache.cc3
-rw-r--r--python/cdrom.cc3
-rw-r--r--python/configuration.cc3
-rw-r--r--python/depcache.cc9
-rw-r--r--python/hashstring.cc3
-rw-r--r--python/indexrecords.cc3
-rw-r--r--python/pkgmanager.cc3
-rw-r--r--python/pkgrecords.cc3
-rw-r--r--python/pkgsrcrecords.cc3
-rw-r--r--python/sourcelist.cc3
-rw-r--r--python/tag.cc6
12 files changed, 32 insertions, 16 deletions
diff --git a/python/acquire.cc b/python/acquire.cc
index 05bffc65..702d48ce 100644
--- a/python/acquire.cc
+++ b/python/acquire.cc
@@ -276,7 +276,8 @@ PyTypeObject PkgAcquireType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
doc_PkgAcquire, // tp_doc
0, // tp_traverse
0, // tp_clear
@@ -366,7 +367,8 @@ PyTypeObject PkgAcquireFileType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
doc_PkgAcquireFile, // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/cache.cc b/python/cache.cc
index c988145f..14484104 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -331,7 +331,8 @@ PyTypeObject PkgCacheType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT , // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
doc_PkgCache, // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/cdrom.cc b/python/cdrom.cc
index 3e63a89c..e98947d1 100644
--- a/python/cdrom.cc
+++ b/python/cdrom.cc
@@ -108,7 +108,8 @@ PyTypeObject PkgCdromType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
"Cdrom Object", // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/configuration.cc b/python/configuration.cc
index 3c6ea88c..365a35fd 100644
--- a/python/configuration.cc
+++ b/python/configuration.cc
@@ -526,7 +526,8 @@ PyTypeObject ConfigurationType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
"Configuration Object", // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/depcache.cc b/python/depcache.cc
index a69e0723..f1c34fef 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -675,7 +675,8 @@ PyTypeObject PkgDepCacheType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
doc_PkgDepCache, // tp_doc
0, // tp_traverse
0, // tp_clear
@@ -858,7 +859,8 @@ PyTypeObject PkgProblemResolverType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
"ProblemResolver Object", // tp_doc
0, // tp_traverse
0, // tp_clear
@@ -975,7 +977,8 @@ PyTypeObject PkgActionGroupType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
doc_PkgActionGroup, // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/hashstring.cc b/python/hashstring.cc
index 71ae5bf4..58bcca9e 100644
--- a/python/hashstring.cc
+++ b/python/hashstring.cc
@@ -118,7 +118,8 @@ PyTypeObject PyHashString_Type = {
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
HashString_doc, // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/indexrecords.cc b/python/indexrecords.cc
index 35e41c59..61ff07fc 100644
--- a/python/indexrecords.cc
+++ b/python/indexrecords.cc
@@ -104,7 +104,8 @@ PyTypeObject PyIndexRecords_Type = {
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
IndexRecords_doc, // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/pkgmanager.cc b/python/pkgmanager.cc
index 7752ce5b..f47e77ad 100644
--- a/python/pkgmanager.cc
+++ b/python/pkgmanager.cc
@@ -153,7 +153,8 @@ PyTypeObject PkgManagerType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
"PackageManager Object", // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/pkgrecords.cc b/python/pkgrecords.cc
index 6022097a..8beefffd 100644
--- a/python/pkgrecords.cc
+++ b/python/pkgrecords.cc
@@ -186,7 +186,8 @@ PyTypeObject PkgRecordsType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
"Records Object", // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc
index 50445432..e6b78a83 100644
--- a/python/pkgsrcrecords.cc
+++ b/python/pkgsrcrecords.cc
@@ -228,7 +228,8 @@ PyTypeObject PkgSrcRecordsType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
"SourceRecords Object", // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/sourcelist.cc b/python/sourcelist.cc
index 1c05d83e..5e5838d8 100644
--- a/python/sourcelist.cc
+++ b/python/sourcelist.cc
@@ -138,7 +138,8 @@ PyTypeObject PkgSourceListType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
"pkgSourceList Object", // tp_doc
0, // tp_traverse
0, // tp_clear
diff --git a/python/tag.cc b/python/tag.cc
index 31491c90..7e7eb21c 100644
--- a/python/tag.cc
+++ b/python/tag.cc
@@ -434,7 +434,8 @@ PyTypeObject TagSecType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
doc_TagSec, // tp_doc
0, // tp_traverse
0, // tp_clear
@@ -521,7 +522,8 @@ PyTypeObject TagFileType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ (Py_TPFLAGS_DEFAULT | // tp_flags
+ Py_TPFLAGS_BASETYPE),
doc_TagFile, // tp_doc
0, // tp_traverse
0, // tp_clear