summaryrefslogtreecommitdiff
path: root/doc/examples/cdrom.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-01-13 17:50:30 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-01-13 17:50:30 +0100
commit8b46b0c4bdfbaa07972311b1cf19616d5c5aff04 (patch)
tree59167b2b8c1d331bfebf072d5ba84dd154f0b373 /doc/examples/cdrom.py
parent6c1711a80a8a7d011f4d5f49618ff396ad2f5722 (diff)
parent85839f4f241c99f9e4ebb0a6a8847a2d433f1160 (diff)
downloadpython-apt-8b46b0c4bdfbaa07972311b1cf19616d5c5aff04.tar.gz
merge from the debian experimental branch
Diffstat (limited to 'doc/examples/cdrom.py')
-rw-r--r--doc/examples/cdrom.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/doc/examples/cdrom.py b/doc/examples/cdrom.py
index bf044d7c..743220a6 100644
--- a/doc/examples/cdrom.py
+++ b/doc/examples/cdrom.py
@@ -2,7 +2,8 @@
# example how to deal with the depcache
import apt_pkg
-import sys, os
+import sys
+import os
import copy
from progress import CdromProgress
@@ -16,17 +17,11 @@ print cdrom
progress = CdromProgress()
-(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)
-
-
print "Exiting"
sys.exit(0)
-
-
-
-