mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 15:03:33 +08:00
testing
This commit is contained in:
parent
81388647ed
commit
1ebd129fed
@ -174,7 +174,7 @@ def md5sum(filename: str) -> str:
|
|||||||
"""Generate an md5sum given a filename."""
|
"""Generate an md5sum given a filename."""
|
||||||
md5 = hashlib.md5()
|
md5 = hashlib.md5()
|
||||||
with open(filename, mode='rb') as infile:
|
with open(filename, mode='rb') as infile:
|
||||||
for buf in iter(partial(infile.read, 128), b''):
|
for buf in iter(partial(infile.read, 1024), b''):
|
||||||
md5.update(buf)
|
md5.update(buf)
|
||||||
return md5.hexdigest()
|
return md5.hexdigest()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user