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/examples | |
| parent | 6bc61a050bd278b28e883b91cfa5999a7cf76d9d (diff) | |
| download | python-apt-4bab1d0fb960a10f73cd6b313f7942d7258c8d72.tar.gz | |
* doc: Update the documentation to use the new names.
Diffstat (limited to 'doc/source/examples')
| -rw-r--r-- | doc/source/examples/apt-gtk.py | 6 |
1 files changed, 3 insertions, 3 deletions
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() |
