summaryrefslogtreecommitdiff
path: root/python/tag.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/tag.cc')
-rw-r--r--python/tag.cc6
1 files changed, 4 insertions, 2 deletions
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