From 28c1bf1d3ec79dd3d2655d6da852ba352155b285 Mon Sep 17 00:00:00 2001 From: emilsvennesson Date: Sun, 6 Oct 2024 13:10:05 +0200 Subject: [PATCH] remove unused md5 hash alg --- lib/inputstreamhelper/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/inputstreamhelper/utils.py b/lib/inputstreamhelper/utils.py index 434b879e..8e0cdae6 100644 --- a/lib/inputstreamhelper/utils.py +++ b/lib/inputstreamhelper/utils.py @@ -158,11 +158,9 @@ def _initialize_checksum(checksum, hash_alg): if not checksum: return None - from hashlib import md5, sha1 + from hashlib import sha1 if hash_alg == 'sha1': return sha1() - if hash_alg == 'md5': - return md5() log(4, 'Invalid hash algorithm specified: {}'.format(hash_alg)) return None