diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-04-17 18:13:46 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-04-17 18:13:46 +0200 |
| commit | 4bab1d0fb960a10f73cd6b313f7942d7258c8d72 (patch) | |
| tree | 1e8e6f165e09bf754a2b61df96380aad4e9ba6a0 /doc/source | |
| parent | 6bc61a050bd278b28e883b91cfa5999a7cf76d9d (diff) | |
| download | python-apt-4bab1d0fb960a10f73cd6b313f7942d7258c8d72.tar.gz | |
* doc: Update the documentation to use the new names.
Diffstat (limited to 'doc/source')
| -rw-r--r-- | doc/source/apt/cache.rst | 4 | ||||
| -rw-r--r-- | doc/source/apt/package.rst | 6 | ||||
| -rw-r--r-- | doc/source/examples/apt-gtk.py | 6 |
3 files changed, 8 insertions, 8 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 diff --git a/doc/source/examples/apt-gtk.py b/doc/source/examples/apt-gtk.py index 835ea4ee..ad46454e 100644 --- a/doc/source/examples/apt-gtk.py +++ b/doc/source/examples/apt-gtk.py @@ -17,10 +17,10 @@ def main(): progress.show() win.show() cache = apt.cache.Cache(progress.open) - if cache["xterm"].isInstalled: - cache["xterm"].markDelete() + if cache["xterm"].is_installed: + cache["xterm"].mark_delete() else: - cache["xterm"].markInstall() + cache["xterm"].mark_install() progress.show_terminal(expanded=True) cache.commit(progress.fetch, progress.install) gtk.main() |
