summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-24 22:44:59 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-24 22:44:59 +0000
commit9e14f11d112f3085ff66bf6405b13f8d26160ad8 (patch)
tree74d57ac919b5d6ada6651d0fbeef617a355e41ff
parentc6e61b32ab649cd6c2854b54452318c35032b164 (diff)
downloadportage-9e14f11d112f3085ff66bf6405b13f8d26160ad8.tar.gz
portage-9e14f11d112f3085ff66bf6405b13f8d26160ad8.tar.bz2
portage-9e14f11d112f3085ff66bf6405b13f8d26160ad8.zip
Remove unused imports and unnecessary dict.keys() call.
svn path=/main/trunk/; revision=7011
-rw-r--r--pym/portage/checksum.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py
index 1315237e8..edbd515ae 100644
--- a/pym/portage/checksum.py
+++ b/pym/portage/checksum.py
@@ -6,11 +6,9 @@
from portage.const import PRIVATE_PATH,PRELINK_BINARY,HASHING_BLOCKSIZE
import os
import errno
-import shutil
import stat
import portage.exception
import portage.process
-import portage.util
import portage.locks
import commands
import md5, sha
@@ -122,7 +120,7 @@ def get_valid_checksum_keys():
return hashfunc_map.keys()
def get_hash_origin(hashtype):
- if not hashtype in hashfunc_map.keys():
+ if hashtype not in hashfunc_map:
raise KeyError(hashtype)
return hashorigin_map.get(hashtype, "unknown")