summaryrefslogtreecommitdiff
path: root/python/metaindex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/metaindex.cc')
-rw-r--r--python/metaindex.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/metaindex.cc b/python/metaindex.cc
index b5d194b4..87b1e59a 100644
--- a/python/metaindex.cc
+++ b/python/metaindex.cc
@@ -72,10 +72,7 @@ static PyObject *MetaIndexRepr(PyObject *Self)
PyTypeObject MetaIndexType =
{
- PyObject_HEAD_INIT(&PyType_Type)
- #if PY_MAJOR_VERSION < 3
- 0, // ob_size
- #endif
+ PyVarObject_HEAD_INIT(&PyType_Type, 0)
"apt_pkg.MetaIndex", // tp_name
sizeof(CppOwnedPyObject<metaIndex*>), // tp_basicsize
0, // tp_itemsize