Fixes for Python 3.x

This commit is contained in:
Tom Marshall 2022-07-16 19:24:57 +02:00
parent 5af124c277
commit c4ed89e4f2
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
import os
import sys
@ -63,7 +63,7 @@ def args_parse():
return args
def file_hash(pathname):
f = open(pathname)
f = open(pathname, 'rb')
buf = f.read()
f.close()
hasher = hashlib.sha1()