summaryrefslogtreecommitdiffstats
path: root/bin/md5check.py
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/md5check.py
parentc9e582c047784201639c0dfda08b35626acf79c1 (diff)
downloadportage-7d1934b2609cdc021ed6b24c76c2d1cff560c127.tar.gz
portage-7d1934b2609cdc021ed6b24c76c2d1cff560c127.tar.bz2
portage-7d1934b2609cdc021ed6b24c76c2d1cff560c127.zip
Remove lots of unnecessary list generation via dict.keys().
svn path=/main/trunk/; revision=6911
Diffstat (limited to 'bin/md5check.py')
-rwxr-xr-xbin/md5check.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/md5check.py b/bin/md5check.py
index 3525ea111..c625fad17 100755
--- a/bin/md5check.py
+++ b/bin/md5check.py
@@ -68,10 +68,10 @@ for mycpv in hugelist:
else:
continue
- if mybn not in md5sums.keys():
+ if mybn not in md5sums:
portage.util.writemsg("Missing md5sum: %s in %s\n" % (mybn, mycpv))
else:
- if mybn in md5_list.keys():
+ if mybn in md5_list:
if (md5_list[mybn]["MD5"] != md5sums[mybn]["MD5"]) or \
(md5_list[mybn]["size"] != md5sums[mybn]["size"]):
@@ -89,12 +89,12 @@ for mycpv in hugelist:
del md5sums[mybn]
#portage.writemsg(str(bn_list)+"\n")
- for x in md5sums.keys():
+ for x in md5sums:
if x not in bn_list:
portage.writemsg("Extra md5sum: %s in %s\n" % (x, mycpv))
print col_list
print
-print str(len(md5_list.keys()))+" unique distfile md5s."
+print str(len(md5_list))+" unique distfile md5s."
print str(len(bn_list))+" unique distfile names."