From c081a2229d3873c9d61cc1b2d994adf01de8a6a8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 21 Jun 2007 11:40:51 +0000 Subject: Remove more unnecessary list generation. svn path=/main/trunk/; revision=6912 --- pym/portage/checksum.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pym/portage/checksum.py') 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: -- cgit v1.2.3-1-g7c22