diff --git a/dotdrop/utils.py b/dotdrop/utils.py index 34deaeb..e48e7bc 100644 --- a/dotdrop/utils.py +++ b/dotdrop/utils.py @@ -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):