diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2018-07-25 00:50:56 -0400 |
---|---|---|
committer | elextr <elextr@gmail.com> | 2018-07-25 14:50:56 +1000 |
commit | f66e41432f3de0f0c5289232b5754833f58087c6 (patch) | |
tree | db55581564d59319dc14186c6276e9b1b8942142 /a2x.py | |
parent | 9af9d94e81bce61d12bd1c69f369536a1aa30f4c (diff) | |
download | asciidoc-py3-f66e41432f3de0f0c5289232b5754833f58087c6.tar.gz |
Fix encoding issue when using subprocess (#20)
Diffstat (limited to 'a2x.py')
-rwxr-xr-x | a2x.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |