summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-21 10:57:55 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-21 10:57:55 +0000
commit7d1934b2609cdc021ed6b24c76c2d1cff560c127 (patch)
treec03ec08f7ae05e12cd5fb30a79802998f5ede216 /bin/fix-db.py
parentDon't generate a list of keys for a containment test. (diff)
downloadportage-multirepo-7d1934b2609cdc021ed6b24c76c2d1cff560c127.tar.gz
portage-multirepo-7d1934b2609cdc021ed6b24c76c2d1cff560c127.tar.bz2
portage-multirepo-7d1934b2609cdc021ed6b24c76c2d1cff560c127.zip
Remove lots of unnecessary list generation via dict.keys().
svn path=/main/trunk/; revision=6911
Diffstat (limited to 'bin/fix-db.py')
-rwxr-xr-xbin/fix-db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fix-db.py b/bin/fix-db.py
index 19eb3142..d17347ef 100755
--- a/bin/fix-db.py
+++ b/bin/fix-db.py
@@ -136,7 +136,7 @@ for cat in os.listdir(vardbdir):
actions = {}
writemsg("\n\n")
-for catpkg in bad.keys():
+for catpkg in bad:
bad[catpkg].sort()
mystr = ""
@@ -155,7 +155,7 @@ for catpkg in bad.keys():
if (len(sys.argv) > 1) and (sys.argv[1] == "--fix"):
writemsg("These are only directions, at the moment.")
- for catpkg in actions.keys():
+ for catpkg in actions:
action = actions[catpkg]
writemsg("We will now '%s' '%s'..." % (action, catpkg))
#if action ==