From 7d1934b2609cdc021ed6b24c76c2d1cff560c127 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 21 Jun 2007 10:57:55 +0000 Subject: Remove lots of unnecessary list generation via dict.keys(). svn path=/main/trunk/; revision=6911 --- bin/fix-db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/fix-db.py') diff --git a/bin/fix-db.py b/bin/fix-db.py index 19eb31425..d17347efb 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 == -- cgit v1.2.3-1-g7c22