diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-06-25 18:53:47 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-06-25 18:53:47 +0200 |
| commit | e80500e7173387acc7a6b6be9d7424a4343ec036 (patch) | |
| tree | d6bb50acbf46708cde2f22cb173bcf998bc9a921 /python/pkgsrcrecords.cc | |
| parent | a4e69e11e544844034c3fbdc6789d5573f802117 (diff) | |
| download | python-apt-e80500e7173387acc7a6b6be9d7424a4343ec036.tar.gz | |
python: Use PyVarObject_HEAD_INIT() instead of PyObject_HEAD_INIT().
This is related to PEP 3123 and fixes some compiler warnings.
Diffstat (limited to 'python/pkgsrcrecords.cc')
| -rw-r--r-- | python/pkgsrcrecords.cc | 5 |
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 |
