1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 12:46:44 +00:00
This commit is contained in:
deadc0de6
2017-03-15 18:00:40 +01:00
parent 3bde81fa76
commit a1c48de359

View File

@@ -19,7 +19,8 @@ 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', 'replace') for x in p.stdout.readlines()])
lines = [x.decode('utf-8', 'replace') for x in p.stdout.readlines()]
return ''.join(lines)
def diff(src, dst, log=False, raw=True):