Skip to content

Commit 28c1bf1

Browse files
remove unused md5 hash alg
1 parent e57850e commit 28c1bf1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/inputstreamhelper/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,9 @@ def _initialize_checksum(checksum, hash_alg):
158158
if not checksum:
159159
return None
160160

161-
from hashlib import md5, sha1
161+
from hashlib import sha1
162162
if hash_alg == 'sha1':
163163
return sha1()
164-
if hash_alg == 'md5':
165-
return md5()
166164
log(4, 'Invalid hash algorithm specified: {}'.format(hash_alg))
167165
return None
168166

0 commit comments

Comments
 (0)