summaryrefslogtreecommitdiff
path: root/python/pkgsrcrecords.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/pkgsrcrecords.cc')
-rw-r--r--python/pkgsrcrecords.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc
index 9707dce2..187050b7 100644
--- a/python/pkgsrcrecords.cc
+++ b/python/pkgsrcrecords.cc
@@ -204,10 +204,7 @@ static PyObject *PkgSrcRecordsNew(PyTypeObject *type,PyObject *args,PyObject *kw
PyTypeObject PkgSrcRecordsType =
{
- PyObject_HEAD_INIT(&PyType_Type)
- #if PY_MAJOR_VERSION < 3
- 0, // ob_size
- #endif
+ PyVarObject_HEAD_INIT(&PyType_Type, 0)
"apt_pkg.SourceRecords", // tp_name
sizeof(CppPyObject<PkgSrcRecordsStruct>), // tp_basicsize
0, // tp_itemsize