summaryrefslogtreecommitdiff
path: root/doc/source/apt/cache.rst
diff options
context:
space:
mode:
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