aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/utilities.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/utilities.py b/sos/utilities.py
index fae424ad..1db23b63 100644
--- a/sos/utilities.py
+++ b/sos/utilities.py
@@ -145,7 +145,7 @@ def sos_get_command_output(command, timeout=300):
# Required hack while we still pass shell=True to Popen; a Popen
# call with shell=False for a non-existant binary will raise OSError.
if p.returncode == 127:
- stdout = ""
+ stdout = six.binary_type("")
return {'status': p.returncode, 'output': stdout.decode('utf-8')}