Skip to content
Snippets Groups Projects
Commit faf20731 authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

md5: Fixed invalid encoding in open

parent 63279799
No related branches found
No related tags found
1 merge request!75md5: Fixed invalid encoding in open
Pipeline #8641 passed with warnings with stages
in 1 minute and 29 seconds
......@@ -12,7 +12,7 @@ import alphaplan_fwr
def md5(fname):
hash_md5 = hashlib.md5()
with open(fname, "rb", encoding="utf-8") as f:
with open(fname, "rb", encoding=None) as f:
for chunk in iter(lambda: f.read(4096), b""):
hash_md5.update(chunk)
return hash_md5.hexdigest()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment