diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-25 21:11:27 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-25 21:11:53 +0200 |
commit | e901b9ef63529563a1a43888cd09819130e04f32 (patch) | |
tree | 5d26e7fc20de87cd586fb2d13cb70f28c438278d /utils | |
parent | 34f9ff10882e2e3d0fb32d4270f950d9ce6c5a50 (diff) | |
download | gemato-e901b9ef63529563a1a43888cd09819130e04f32.tar.gz |
Remove remaining pyblake2 uses
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/fuzzy-hash-tester.py | 2 | ||||
-rwxr-xr-x | utils/gen_fast_manifest.py | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/utils/fuzzy-hash-tester.py b/utils/fuzzy-hash-tester.py index 2d0c426..c3234cb 100755 --- a/utils/fuzzy-hash-tester.py +++ b/utils/fuzzy-hash-tester.py @@ -39,7 +39,7 @@ ALGORITHMS = { functools.partial(ExternalToolHash, 'sha384sum')], 'sha512': [hashlib.sha512, functools.partial(ExternalToolHash, 'sha512sum')], - 'blake2b': [hashlib.blake2b, pyblake2.blake2b, + 'blake2b': [hashlib.blake2b, hashlib.blake2b, functools.partial(ExternalToolHash, 'b2sum')], } diff --git a/utils/gen_fast_manifest.py b/utils/gen_fast_manifest.py index 6f3a071..f48fb3e 100755 --- a/utils/gen_fast_manifest.py +++ b/utils/gen_fast_manifest.py @@ -13,12 +13,10 @@ import os import os.path import sys -import pyblake2 - def get_manifest_entry(t, path, relpath): sha512 = hashlib.sha512() - blake2 = pyblake2.blake2b() + blake2 = hashlib.blake2b() with io.open(path, 'rb') as f: buf = f.read() |