summaryrefslogtreecommitdiff
path: root/doc/source/apt
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-17 18:13:46 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-17 18:13:46 +0200
commit4bab1d0fb960a10f73cd6b313f7942d7258c8d72 (patch)
tree1e8e6f165e09bf754a2b61df96380aad4e9ba6a0 /doc/source/apt
parent6bc61a050bd278b28e883b91cfa5999a7cf76d9d (diff)
downloadpython-apt-4bab1d0fb960a10f73cd6b313f7942d7258c8d72.tar.gz
* doc: Update the documentation to use the new names.
Diffstat (limited to 'doc/source/apt')
-rw-r--r--doc/source/apt/cache.rst4
-rw-r--r--doc/source/apt/package.rst6
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/source/apt/cache.rst b/doc/source/apt/cache.rst
index d96cba97..ddb2dc64 100644
--- a/doc/source/apt/cache.rst
+++ b/doc/source/apt/cache.rst
@@ -66,8 +66,8 @@ packages whose state has been changed, eg. packages marked for installation::
>>> from apt.cache import FilteredCache, Cache, MarkedChangesFilter
>>> cache = apt.Cache()
>>> changed = apt.FilteredCache(cache)
- >>> changed.setFilter(MarkedChangesFilter())
- >>> print len(changed) == len(cache.GetChanges()) # Both need to have same length
+ >>> changed.set_filter(MarkedChangesFilter())
+ >>> print len(changed) == len(cache.get_changes()) # Both need to have same length
True
diff --git a/doc/source/apt/package.rst b/doc/source/apt/package.rst
index bb74915e..4b143b8a 100644
--- a/doc/source/apt/package.rst
+++ b/doc/source/apt/package.rst
@@ -40,7 +40,7 @@ Dependency Information
The version or None.
- .. attribute:: preDepend
+ .. attribute:: pre_depend
Boolean value whether this is a pre-dependency.
@@ -101,9 +101,9 @@ Examples
print 'python-apt is trusted:', pkg.candidate.origins[0].trusted
# Mark python-apt for install
- pkg.markInstall()
+ pkg.mark_install()
- print 'python-apt is marked for install:', pkg.markedInstall
+ print 'python-apt is marked for install:', pkg.marked_install
print 'python-apt is (summary):', pkg.candidate.summary