Add and remove unnecessary / needed decodes (#38)

* remove unecessary decode

* add needed decode

Co-authored-by: Reid Williams <reid@computable.io>
This commit is contained in:
Reid Williams 2020-05-17 08:07:47 -07:00 committed by GitHub
parent 6d82ff93b1
commit 4ea0a57e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,7 @@ class Bitrot(object):
print( print(
'\rerror: SHA1 mismatch for {}: expected {}, got {}.' '\rerror: SHA1 mismatch for {}: expected {}, got {}.'
' Last good hash checked on {}.'.format( ' Last good hash checked on {}.'.format(
p, stored_sha1, new_sha1, stored_ts p.decode(FSENCODING), stored_sha1, new_sha1, stored_ts
), ),
file=sys.stderr, file=sys.stderr,
) )
@ -344,9 +344,9 @@ class Bitrot(object):
for path in renamed_paths: for path in renamed_paths:
print( print(
' from', ' from',
path[0].decode(FSENCODING), path[0],
'to', 'to',
path[1].decode(FSENCODING), path[1],
) )
if missing_paths: if missing_paths:
print('{} entries missing:'.format(len(missing_paths))) print('{} entries missing:'.format(len(missing_paths)))