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:
parent
6d82ff93b1
commit
4ea0a57e0a
@ -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)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user