diff options
| author | 2010-08-22 11:04:12 +0200 | |
|---|---|---|
| committer | 2010-08-22 21:19:02 +0200 | |
| commit | 6072e9cf6c76c39c81d47e8cc3ad2c1c068af471 (patch) | |
| tree | fdeb7aef7bd65e90600478e3eba47070683a2d0a /minidinstall | |
| parent | e4640c86461ba77eb653349a7bd085bde60a527e (diff) | |
hashlib can handle sha256, so we didn't need python-crypto anymore
Diffstat (limited to 'minidinstall')
| -rw-r--r-- | minidinstall/misc.py | 3 |
1 files changed, 1 insertions, 2 deletions
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) |
