summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-04-07 11:44:59 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-04-07 11:44:59 +0000
commit7e76103c2b13d27f4a9987b1f9fca50504177268 (patch)
tree5690b514e2c52155a231bae2e578b40a14f5470b /doc
parenta567392950a174ccb85c7f6c5c4ad8de7c37773d (diff)
downloadpython-apt-7e76103c2b13d27f4a9987b1f9fca50504177268.tar.gz
* code cleanups, simple MediaChanged implemented
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/action.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/action.py b/doc/examples/action.py
index e19025a6..09ded0a7 100644
--- a/doc/examples/action.py
+++ b/doc/examples/action.py
@@ -16,7 +16,6 @@ class OpProgress:
if percent >= 100:
self.last = 0.0
-
def Done(self):
self.last = 0.0
print "\rDone "
@@ -25,6 +24,8 @@ class OpProgress:
class FetchProgress:
def __init__(self):
pass
+ def UpdateStatus(self, uri, descr, shortDescr, status):
+ print "UpdateStatus: '%s' '%s' '%s' '%i'" % (uri,descr,shortDescr, status)
def Pulse(self):
print "Pulse: CPS: %s/s; Bytes: %s/%s; Item: %s/%s" % (apt_pkg.SizeToStr(self.CurrentCPS), apt_pkg.SizeToStr(self.CurrentBytes), apt_pkg.SizeToStr(self.TotalBytes), self.CurrentItems, self.TotalItems)