From 6072e9cf6c76c39c81d47e8cc3ad2c1c068af471 Mon Sep 17 00:00:00 2001 From: Christoph Goehre Date: Sun, 22 Aug 2010 11:04:12 +0200 Subject: hashlib can handle sha256, so we didn't need python-crypto anymore --- minidinstall/misc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'minidinstall/misc.py') diff --git a/minidinstall/misc.py b/minidinstall/misc.py index b8f323a..7efd426 100644 --- a/minidinstall/misc.py +++ b/minidinstall/misc.py @@ -60,8 +60,7 @@ def _get_internal_file_sum(self ,type, filename): elif type == 'sha1': sum = hashlib.sha1() elif type == 'sha256': - from Crypto.Hash import SHA256 - sum = SHA256.new() + sum = hashlib.sha256() self._logger.debug("Generate %s (python-internal) for %s" % (type, filename)) f = open(filename) buf = f.read(8192) -- cgit v1.2.3