summaryrefslogtreecommitdiffstats
path: root/pym/portage/checksum.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-21 11:40:51 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-21 11:40:51 +0000
commitc081a2229d3873c9d61cc1b2d994adf01de8a6a8 (patch)
tree981b8e107def24334f666918abf9801852870a4e /pym/portage/checksum.py
parent7d1934b2609cdc021ed6b24c76c2d1cff560c127 (diff)
downloadportage-c081a2229d3873c9d61cc1b2d994adf01de8a6a8.tar.gz
portage-c081a2229d3873c9d61cc1b2d994adf01de8a6a8.tar.bz2
portage-c081a2229d3873c9d61cc1b2d994adf01de8a6a8.zip
Remove more unnecessary list generation.
svn path=/main/trunk/; revision=6912
Diffstat (limited to 'pym/portage/checksum.py')
-rw-r--r--pym/portage/checksum.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py
index 5a902ab8c..a29f3c325 100644
--- a/pym/portage/checksum.py
+++ b/pym/portage/checksum.py
@@ -79,7 +79,7 @@ def perform_md5(x, calc_prelink=0):
def perform_all(x, calc_prelink=0):
mydict = {}
- for k in hashfunc_map.keys():
+ for k in hashfunc_map:
mydict[k] = perform_checksum(x, hashfunc_map[k], calc_prelink)[0]
return mydict
@@ -131,10 +131,10 @@ def verify_all(filename, mydict, calc_prelink=0, strict=0):
got = " ".join(got)
return False, ("Insufficient data for checksum verification", got, expected)
- for x in mydict.keys():
+ for x in mydict:
if x == "size":
continue
- elif x in hashfunc_map.keys():
+ elif x in hashfunc_map:
myhash = perform_checksum(filename, x, calc_prelink=calc_prelink)[0]
if mydict[x] != myhash:
if strict: