Traceback (most recent call last):
File "hexview.py", line 307, in
print(file_type(open(args.file, 'rb').read(8)))
File "hexview.py", line 174, in file_type
if file_signature.startswith(signature.upper()):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Traceback (most recent call last): File "hexview.py", line 307, in
print(file_type(open(args.file, 'rb').read(8)))
File "hexview.py", line 174, in file_type
if file_signature.startswith(signature.upper()):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
How can i fix it?