1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 13:07:59 +00:00

dirty fix for text files with bad char

This commit is contained in:
deadc0de6
2017-03-09 15:11:06 +01:00
parent 8f6b58bcac
commit 6ea90ee1d6
2 changed files with 13 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ def run(cmd, log=False, raw=True):
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
if raw:
return p.stdout.readlines()
return ''.join([x.decode("utf-8") for x in p.stdout.readlines()])
return ''.join([x.decode('utf-8', 'replace') for x in p.stdout.readlines()])
def diff(src, dst, log=False, raw=True):