summaryrefslogtreecommitdiff
path: root/doc/examples/cdrom.py
diff options
context:
space:
mode:
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)