From: Zac Medico Date: Sun, 2 Oct 2011 06:31:52 +0000 (-0700) Subject: checksum.py: use fchksum.fmd5t directly X-Git-Tag: v2.2.0_alpha61~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1ed3230d6a121fb2bccc0a1d51255cae382ed4f;p=portage.git checksum.py: use fchksum.fmd5t directly --- diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py index 080a6dff3..9f3d81cff 100644 --- a/pym/portage/checksum.py +++ b/pym/portage/checksum.py @@ -133,10 +133,7 @@ if "WHIRLPOOL" not in hashfunc_map: # Use python-fchksum if available, prefer it over all other MD5 implementations try: - import fchksum - - def md5hash(filename): - return fchksum.fmd5t(filename) + from fchksum import fmd5t as md5hash hashfunc_map["MD5"] = md5hash hashorigin_map["MD5"] = "python-fchksum"