Skip to content
Snippets Groups Projects
Commit c79c446b authored by Stefano Zacchiroli's avatar Stefano Zacchiroli
Browse files

swh-hash-file: make sure that paths are passed on as bytes

parent 73d5ffb2
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ HASH_ALGO = 'sha1_git'
def hash_file(fname):
return hash_to_hex(Content.from_file(path=fname).hash)
return hash_to_hex(Content.from_file(path=fname.encode()).hash)
def main(fnames):
......
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