summaryrefslogtreecommitdiff
path: root/doc/examples/progress.py
diff options
context:
space:
mode:
authorBen Finney <ben@benfinney.id.au>2008-05-16 20:12:36 +1000
committerBen Finney <ben@benfinney.id.au>2008-05-16 20:12:36 +1000
commitf264f62b7602f960bc35f3f68b1ed14c61bbfdd5 (patch)
tree1ee94164129169dda7273fb6553bef2a670d3d62 /doc/examples/progress.py
parent97c3c24b3060e8280fffed68ed60a68e04f382ca (diff)
downloadpython-apt-f264f62b7602f960bc35f3f68b1ed14c61bbfdd5.tar.gz
Limit code lines to maximum 79 characters, to conform with PEP 8.
Diffstat (limited to 'doc/examples/progress.py')
-rw-r--r--doc/examples/progress.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/examples/progress.py b/doc/examples/progress.py
index 70fc92f3..c56734b7 100644
--- a/doc/examples/progress.py
+++ b/doc/examples/progress.py
@@ -34,10 +34,13 @@ class TextFetchProgress(apt.FetchProgress):
pass
def updateStatus(self, uri, descr, shortDescr, status):
- print "UpdateStatus: '%s' '%s' '%s' '%i'" % (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" % (SizeToStr(self.currentCPS), SizeToStr(self.currentBytes), SizeToStr(self.totalBytes), self.currentItems, self.totalItems)
+ print "Pulse: CPS: %s/s; Bytes: %s/%s; Item: %s/%s" % (
+ SizeToStr(self.currentCPS), SizeToStr(self.currentBytes),
+ SizeToStr(self.totalBytes), self.currentItems, self.totalItems)
return True
def mediaChange(self, medium, drive):