summaryrefslogtreecommitdiff
path: root/python/acquire.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/acquire.cc')
-rw-r--r--python/acquire.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/acquire.cc b/python/acquire.cc
index 704ad0bd..b0dd2cab 100644
--- a/python/acquire.cc
+++ b/python/acquire.cc
@@ -372,10 +372,11 @@ PyTypeObject PkgAcquireFileType =
0, // tp_setattro
0, // tp_as_buffer
(Py_TPFLAGS_DEFAULT | // tp_flags
- Py_TPFLAGS_BASETYPE),
+ Py_TPFLAGS_BASETYPE |
+ Py_TPFLAGS_HAVE_GC),
doc_PkgAcquireFile, // tp_doc
- 0, // tp_traverse
- 0, // tp_clear
+ CppOwnedTraverse<pkgAcqFile*>, // tp_traverse
+ CppOwnedClear<pkgAcqFile*>, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
0, // tp_iter