Merge pull request #20 from benshep/patch-1

Corrected assumed 'utf-8' encoding
This commit is contained in:
Łukasz Langa 2016-11-01 11:24:18 -07:00 committed by GitHub
commit 7cf1577be7

View File

@ -186,7 +186,7 @@ class Bitrot(object):
) )
for p in paths: for p in paths:
p_uni = p.decode('utf8') p_uni = p.decode(FSENCODING)
try: try:
st = os.stat(p) st = os.stat(p)
except OSError as ex: except OSError as ex: