summaryrefslogtreecommitdiff
path: root/python/pkgrecords.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/pkgrecords.cc')
-rw-r--r--python/pkgrecords.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/pkgrecords.cc b/python/pkgrecords.cc
index 4a3c80db..886bdb58 100644
--- a/python/pkgrecords.cc
+++ b/python/pkgrecords.cc
@@ -163,10 +163,7 @@ static PyObject *PkgRecordsNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
PyTypeObject PkgRecordsType =
{
- PyObject_HEAD_INIT(&PyType_Type)
- #if PY_MAJOR_VERSION < 3
- 0, // ob_size
- #endif
+ PyVarObject_HEAD_INIT(&PyType_Type, 0)
"apt_pkg.PackageRecords", // tp_name
sizeof(CppOwnedPyObject<PkgRecordsStruct>), // tp_basicsize
0, // tp_itemsize