summaryrefslogtreecommitdiff
path: root/doc/examples/cdrom.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2013-10-21 14:35:33 +0200
committerJulian Andres Klode <jak@debian.org>2013-10-21 14:35:33 +0200
commitabc9feb18b268cbc4ddb79aabb30ce352e31b44a (patch)
tree5f910a1634905d2b5b2246f48c18451e04785ae5 /doc/examples/cdrom.py
parentce50049ebd837697c947ed332a8a81bc56c75fb4 (diff)
downloadpython-apt-abc9feb18b268cbc4ddb79aabb30ce352e31b44a.tar.gz
doc/examples: Start updating to new API
Diffstat (limited to 'doc/examples/cdrom.py')
-rw-r--r--doc/examples/cdrom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/cdrom.py b/doc/examples/cdrom.py
index 78f2a8af..2fbc8f34 100644
--- a/doc/examples/cdrom.py
+++ b/doc/examples/cdrom.py
@@ -15,11 +15,11 @@ print cdrom
progress = TextCdromProgress()
-(res, ident) = cdrom.Ident(progress)
+(res, ident) = cdrom.ident(progress)
print "ident result is: %s (%s) " % (res, ident)
-apt_pkg.Config.Set("APT::CDROM::Rename", "True")
-cdrom.Add(progress)
+apt_pkg.config["APT::CDROM::Rename"] = "True"
+cdrom.add(progress)
print "Exiting"
sys.exit(0)