summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/wrappers/process.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2017-01-03 17:19:25 +0100
committerOliver Poignant <oliver@poignant.se>2017-01-03 17:19:25 +0100
commitf48093c4415c04b070886c19bdc2fcc7c12fcbd0 (patch)
tree93ea57bc3064fd10d37b9b8d3db07a91b57c499a /gitautodeploy/wrappers/process.py
parent644d98ca85730bf2abb494e45e35b95bc370648b (diff)
downloadGit-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.py4
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)