filesystem.py: remove unused md5sum (#47832)

This commit is contained in:
Harmen Stoppels 2024-11-28 18:43:21 +01:00 committed by GitHub
parent e37e53cfe8
commit 67d494fa0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2773,22 +2773,6 @@ def prefixes(path):
return paths
@system_path_filter
def md5sum(file):
"""Compute the MD5 sum of a file.
Args:
file (str): file to be checksummed
Returns:
MD5 sum of the file's content
"""
md5 = hashlib.md5()
with open(file, "rb") as f:
md5.update(f.read())
return md5.digest()
@system_path_filter
def remove_directory_contents(dir):
"""Remove all contents of a directory."""