summaryrefslogtreecommitdiffstats
path: root/bin/fix-db.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-22 01:53:50 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-22 01:53:50 +0000
commitc0cfcc8a6eb2e4adff8eb3d3bb9f44d9b7124ccd (patch)
tree52cfa5cff4798cc05c2163976cd41bea3f678ddd /bin/fix-db.py
parent337f4de4c1bfb38e02a9f2b5be05884e68299d01 (diff)
downloadportage-c0cfcc8a6eb2e4adff8eb3d3bb9f44d9b7124ccd.tar.gz
portage-c0cfcc8a6eb2e4adff8eb3d3bb9f44d9b7124ccd.tar.bz2
portage-c0cfcc8a6eb2e4adff8eb3d3bb9f44d9b7124ccd.zip
Remove lots of unnecessary list generation via dict.keys(). (trunk r6911)
svn path=/main/branches/2.1.2/; revision=6930
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 8292bc960..301ec8002 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 ==