summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-01-20 17:06:11 +0100
committerJulian Andres Klode <jak@debian.org>2010-01-20 17:06:11 +0100
commit2e32d8d27f84b585ef8196a28bdd2e649de02607 (patch)
tree7f0ee602792764aa410d814b71a8cd528f3b8539 /doc
parent86bad92b26e6c7af7deb7dfcdd25e70ce1ce5a85 (diff)
downloadpython-apt-2e32d8d27f84b585ef8196a28bdd2e649de02607.tar.gz
Rename apt_pkg.PackageIndexFile to apt_pkg.IndexFile.
Diffstat (limited to 'doc')
-rw-r--r--doc/source/c++/api.rst20
-rw-r--r--doc/source/library/apt_pkg.rst6
2 files changed, 13 insertions, 13 deletions
diff --git a/doc/source/c++/api.rst b/doc/source/c++/api.rst
index 2abd3ab8..749e2bc0 100644
--- a/doc/source/c++/api.rst
+++ b/doc/source/c++/api.rst
@@ -564,31 +564,31 @@ PackageFile (pkgCache::PkgFileIterator)
Return the :ctype:`pkgCache::PkgFileIterator` reference contained in the
Python object *object*.
-PackageIndexFile (pkgIndexFile)
+IndexFile (pkgIndexFile)
--------------------------------------
-.. cvar:: PyTypeObject PyPackageIndexFile_Type
+.. cvar:: PyTypeObject PyIndexFile_Type
- The type object for :class:`apt_pkg.PackageIndexFile` objects.
+ The type object for :class:`apt_pkg.IndexFile` objects.
-.. cfunction:: int PyPackageIndexFile_Check(PyObject *object)
+.. cfunction:: int PyIndexFile_Check(PyObject *object)
- Check that the object *object* is an :class:`apt_pkg.PackageIndexFile` object, or
+ Check that the object *object* is an :class:`apt_pkg.IndexFile` object, or
a subclass thereof.
-.. cfunction:: int PyPackageIndexFile_CheckExact(PyObject *object)
+.. cfunction:: int PyIndexFile_CheckExact(PyObject *object)
- Check that the object *object* is an :class:`apt_pkg.PackageIndexFile` object
+ Check that the object *object* is an :class:`apt_pkg.IndexFile` object
and no subclass thereof.
-.. cfunction:: PyObject* PyPackageIndexFile_FromCpp(pkgIndexFile *cpp, bool delete=false, PyObject *owner)
+.. cfunction:: PyObject* PyIndexFile_FromCpp(pkgIndexFile *cpp, bool delete=false, PyObject *owner)
- Create a new :class:`apt_pkg.PackageIndexFile` object from the :ctype:`pkgIndexFile`
+ Create a new :class:`apt_pkg.IndexFile` object from the :ctype:`pkgIndexFile`
pointer given by the parameter *cpp*. If the parameter *delete* is
true, the object pointed to by *cpp* will be deleted when the reference
count of the returned object reaches 0. The parameter *owner* should be
a PyObject of the type :cdata:`PyMetaIndex_Type`.
-.. cfunction:: pkgIndexFile* PyPackageIndexFile_ToCpp(PyObject *object)
+.. cfunction:: pkgIndexFile* PyIndexFile_ToCpp(PyObject *object)
Return the :ctype:`pkgIndexFile` pointer contained in the Python object
*object*.
diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst
index c3a74267..90b3062a 100644
--- a/doc/source/library/apt_pkg.rst
+++ b/doc/source/library/apt_pkg.rst
@@ -731,7 +731,7 @@ Index Files
.. attribute:: index_files
-.. class:: PackageIndexFile
+.. class:: IndexFile
.. method:: archive_uri(path)
@@ -743,7 +743,7 @@ Index Files
.. attribute:: describe
- A description of the :class:`PackageIndexFile`.
+ A description of the :class:`IndexFile`.
.. attribute:: exists
@@ -1790,7 +1790,7 @@ Other classes
.. method:: find_index(pkgfile)
- Return a :class:`PackageIndexFile` object for the :class:`PackageFile`
+ Return a :class:`IndexFile` object for the :class:`PackageFile`
*pkgfile*.
.. method:: read_main_list