diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-13 14:25:06 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-13 14:25:06 +0200 |
| commit | dabc8c6796afdaf0e2918db77117a07eae8b1fd4 (patch) | |
| tree | 14f67c48740003783572bc8d1fa2b5eba9bf9cca /python/pkgsrcrecords.cc | |
| parent | b0abeea43f6e51c452af68d8ec9bf3d0f701d772 (diff) | |
| download | python-apt-dabc8c6796afdaf0e2918db77117a07eae8b1fd4.tar.gz | |
python: Rename all PyTypeObject's to conform to PEP 7.
This is the first step towards implementing coding guidelines for the
C++ code and providing an usable C++ API.
Diffstat (limited to 'python/pkgsrcrecords.cc')
| -rw-r--r-- | python/pkgsrcrecords.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc index 99711585..fbc9a293 100644 --- a/python/pkgsrcrecords.cc +++ b/python/pkgsrcrecords.cc @@ -124,7 +124,7 @@ static PyObject *PkgSrcRecordsGetIndex(PyObject *Self,void*) { return 0; const pkgIndexFile &tmp = Struct.Last->Index(); CppOwnedPyObject<pkgIndexFile*> *PyObj; - PyObj = CppOwnedPyObject_NEW<pkgIndexFile*>(Self,&PackageIndexFileType, + PyObj = CppOwnedPyObject_NEW<pkgIndexFile*>(Self,&PyPackageIndexFile_Type, (pkgIndexFile*)&tmp); // Do not delete the pkgIndexFile*, it is managed by PkgSrcRecords::Parser. PyObj->NoDelete=true; @@ -255,7 +255,7 @@ static PyObject *PkgSrcRecordsNew(PyTypeObject *type,PyObject *args,PyObject *kw return HandleErrors(CppPyObject_NEW<PkgSrcRecordsStruct>(type)); } -PyTypeObject PkgSrcRecordsType = +PyTypeObject PySourceRecords_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "apt_pkg.SourceRecords", // tp_name @@ -310,6 +310,6 @@ PyObject *GetPkgSrcRecords(PyObject *Self,PyObject *Args) if (PyArg_ParseTuple(Args,"") == 0) return 0; - return HandleErrors(CppPyObject_NEW<PkgSrcRecordsStruct>(&PkgSrcRecordsType)); + return HandleErrors(CppPyObject_NEW<PkgSrcRecordsStruct>(&PySourceRecords_Type)); } #endif |
