Skip to content

Commit

Permalink
remove unused md5 hash alg
Browse files Browse the repository at this point in the history
  • Loading branch information
emilsvennesson committed Oct 6, 2024
1 parent e57850e commit 28c1bf1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/inputstreamhelper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 28c1bf1

Please sign in to comment.