Fix hashlib function capitalization (#17323)

This commit is contained in:
Adam J. Stewart 2020-07-01 09:46:20 -05:00 committed by GitHub
parent 60283775b3
commit 6a77f1ff45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,7 @@ def __init__(self, hexdigest, **kwargs):
@property
def hash_name(self):
"""Get the name of the hash function this Checker is using."""
return self.hash_fun().name
return self.hash_fun().name.lower()
def check(self, filename):
"""Read the file with the specified name and check its checksum