summaryrefslogtreecommitdiffstats
path: root/pym/portage_checksum.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-22 02:09:41 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-22 02:09:41 +0000
commit9568c3258f7349ec24a76d015d82c762ac7fb2d7 (patch)
treec636fac0378a3c59351a3446eff8897bb0498921 /pym/portage_checksum.py
parentc0cfcc8a6eb2e4adff8eb3d3bb9f44d9b7124ccd (diff)
downloadportage-9568c3258f7349ec24a76d015d82c762ac7fb2d7.tar.gz
portage-9568c3258f7349ec24a76d015d82c762ac7fb2d7.tar.bz2
portage-9568c3258f7349ec24a76d015d82c762ac7fb2d7.zip
Remove more unnecessary list generation. (trunk r6912)
svn path=/main/branches/2.1.2/; revision=6931
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 885535ee0..72290e350 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: