summaryrefslogtreecommitdiff
path: root/doc/examples/action.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/action.py')
-rw-r--r--doc/examples/action.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/action.py b/doc/examples/action.py
index 7153292c..9b9d7dd3 100644
--- a/doc/examples/action.py
+++ b/doc/examples/action.py
@@ -86,7 +86,7 @@ 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) \
+ if pkg.CurrentVer is not None and not depcache.MarkedInstall(pkg) \
and depcache.IsUpgradable(pkg):
print "Upgrade didn't upgrade (kept): %s" % pkg.Name
@@ -101,7 +101,7 @@ print "DebSize: %s " % apt_pkg.SizeToStr(depcache.DebSize)
# overview about what would happen
for pkg in cache.Packages:
if depcache.MarkedInstall(pkg):
- if pkg.CurrentVer != None:
+ if pkg.CurrentVer is not None:
print "Marked upgrade: %s " % pkg.Name
else:
print "Marked install: %s" % pkg.Name