diff options
author | Oliver Poignant <oliver@poignant.se> | 2017-01-03 17:19:25 +0100 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2017-01-03 17:19:25 +0100 |
commit | f48093c4415c04b070886c19bdc2fcc7c12fcbd0 (patch) | |
tree | 93ea57bc3064fd10d37b9b8d3db07a91b57c499a /gitautodeploy/wrappers/process.py | |
parent | 644d98ca85730bf2abb494e45e35b95bc370648b (diff) | |
download | Git-Auto-Deploy-f48093c4415c04b070886c19bdc2fcc7c12fcbd0.zip Git-Auto-Deploy-f48093c4415c04b070886c19bdc2fcc7c12fcbd0.tar.gz Git-Auto-Deploy-f48093c4415c04b070886c19bdc2fcc7c12fcbd0.tar.bz2 |
Compatibility with python >= 3.4
Diffstat (limited to 'gitautodeploy/wrappers/process.py')
-rw-r--r-- | gitautodeploy/wrappers/process.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gitautodeploy/wrappers/process.py b/gitautodeploy/wrappers/process.py index 30adc36..867e6cf 100644 --- a/gitautodeploy/wrappers/process.py +++ b/gitautodeploy/wrappers/process.py @@ -20,6 +20,10 @@ class ProcessWrapper(): p = Popen(*popenargs, **kwargs) stdout, stderr = p.communicate() + # Decode bytes to string (assume utf-8 encoding) + stdout = stdout.decode("utf-8") + stderr = stderr.decode("utf-8") + if stdout: for line in stdout.strip().split("\n"): logger.info(line) |