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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user