summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xa2x.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/a2x.py b/a2x.py
index cf0af2e..dad299a 100755
--- a/a2x.py
+++ b/a2x.py
@@ -214,7 +214,7 @@ def shell(cmd, raise_error=True):
stdout = stderr = subprocess.PIPE
try:
popen = subprocess.Popen(cmd, stdout=stdout, stderr=stderr,
- shell=True, env=ENV)
+ shell=True, env=ENV, universal_newlines=True)
except OSError as e:
die('failed: %s: %s' % (cmd, e))
stdoutdata, stderrdata = popen.communicate()