Fix hashlib function capitalization (#17323)
This commit is contained in:
parent
60283775b3
commit
6a77f1ff45
@ -133,7 +133,7 @@ def __init__(self, hexdigest, **kwargs):
|
|||||||
@property
|
@property
|
||||||
def hash_name(self):
|
def hash_name(self):
|
||||||
"""Get the name of the hash function this Checker is using."""
|
"""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):
|
def check(self, filename):
|
||||||
"""Read the file with the specified name and check its checksum
|
"""Read the file with the specified name and check its checksum
|
||||||
|
Loading…
Reference in New Issue
Block a user