summaryrefslogtreecommitdiff
path: root/python/pkgsrcrecords.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-06-09 18:10:19 +0200
committerJulian Andres Klode <jak@debian.org>2009-06-09 18:10:19 +0200
commitf652213b76f72382bab21e730bf0ccc4419a1267 (patch)
tree3008ddf6d9d7a08ecf99c5ac6cbdddbe2f2e9e74 /python/pkgsrcrecords.cc
parentfc874b8b9507401a232d42fa7936148f76b0a1e2 (diff)
downloadpython-apt-f652213b76f72382bab21e730bf0ccc4419a1267.tar.gz
Allow types providing __new__() to be subclassed.
Diffstat (limited to 'python/pkgsrcrecords.cc')
-rw-r--r--python/pkgsrcrecords.cc3
1 files changed, 2 insertions, 1 deletions
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