summaryrefslogtreecommitdiff
path: root/python/metaindex.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-13 14:25:06 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-13 14:25:06 +0200
commitdabc8c6796afdaf0e2918db77117a07eae8b1fd4 (patch)
tree14f67c48740003783572bc8d1fa2b5eba9bf9cca /python/metaindex.cc
parentb0abeea43f6e51c452af68d8ec9bf3d0f701d772 (diff)
downloadpython-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/metaindex.cc')
-rw-r--r--python/metaindex.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/metaindex.cc b/python/metaindex.cc
index 195394d6..d67c0ada 100644
--- a/python/metaindex.cc
+++ b/python/metaindex.cc
@@ -38,7 +38,7 @@ static PyObject *MetaIndexGetIndexFiles(PyObject *Self,void*) {
I != indexFiles->end(); I++)
{
CppOwnedPyObject<pkgIndexFile*> *Obj;
- Obj = CppOwnedPyObject_NEW<pkgIndexFile*>(Self, &PackageIndexFileType,*I);
+ Obj = CppOwnedPyObject_NEW<pkgIndexFile*>(Self, &PyPackageIndexFile_Type,*I);
// Do not delete pkgIndexFile*, they are managed by metaIndex.
Obj->NoDelete = true;
PyList_Append(List,Obj);
@@ -73,7 +73,7 @@ static PyObject *MetaIndexRepr(PyObject *Self)
return PyString_FromString(S);
}
-PyTypeObject MetaIndexType =
+PyTypeObject PyMetaIndex_Type =
{
PyVarObject_HEAD_INIT(&PyType_Type, 0)
"apt_pkg.MetaIndex", // tp_name