summaryrefslogtreecommitdiff
path: root/doc/source/apt/cache.rst
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/cache.rst
parent6bc61a050bd278b28e883b91cfa5999a7cf76d9d (diff)
downloadpython-apt-4bab1d0fb960a10f73cd6b313f7942d7258c8d72.tar.gz
* doc: Update the documentation to use the new names.
Diffstat (limited to 'doc/source/apt/cache.rst')
-rw-r--r--doc/source/apt/cache.rst4
1 files changed, 2 insertions, 2 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