From 9b2e18e4d1b95ef505f87561ac06aba50ada3609 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 21 Oct 2013 20:39:09 +0200 Subject: doc/examples/*.py: Update examples to the new API Closes: #639022 --- doc/examples/gui-inst.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/examples/gui-inst.py') diff --git a/doc/examples/gui-inst.py b/doc/examples/gui-inst.py index 68f06fc0..654f3794 100755 --- a/doc/examples/gui-inst.py +++ b/doc/examples/gui-inst.py @@ -18,10 +18,10 @@ if __name__ == "__main__": win.show() cache = apt.cache.Cache(progress.open) - if cache["2vcard"].isInstalled: - cache["2vcard"].markDelete() + if cache["2vcard"].is_installed: + cache["2vcard"].mark_delete() else: - cache["2vcard"].markInstall() + cache["2vcard"].mark_install() progress.show_terminal(expanded=True) cache.commit(progress.fetch, progress.install) gtk.main() -- cgit v1.2.3