summaryrefslogtreecommitdiff
path: root/doc/examples/depcache.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/depcache.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/depcache.py')
-rw-r--r--doc/examples/depcache.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/depcache.py b/doc/examples/depcache.py
index 556c954b..ad884fe7 100644
--- a/doc/examples/depcache.py
+++ b/doc/examples/depcache.py
@@ -84,7 +84,8 @@ print "UsrSize: %s " % apt_pkg.SizeToStr(depcache.UsrSize)
print "DebSize: %s " % apt_pkg.SizeToStr(depcache.DebSize)
for pkg in cache.Packages:
- if pkg.CurrentVer != None and not depcache.MarkedInstall(pkg) and depcache.IsUpgradable(pkg):
+ if pkg.CurrentVer != None and not depcache.MarkedInstall(pkg) \
+ and depcache.IsUpgradable(pkg):
print "Upgrade didn't upgrade (kept): %s" % pkg.Name