Fixes for Python 3.x
This commit is contained in:
parent
5af124c277
commit
c4ed89e4f2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue