aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-04-04 22:41:10 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-04-04 22:41:10 +0100
commit5c04d108823a6eb0ee26671cb44e0404fc2c3352 (patch)
treeda2132377210297755cfb689db8bc2be01554b73
parent36c1d3f4d3ff35bab4ca84d3c357c82bfd38f36d (diff)
downloadsos-5c04d108823a6eb0ee26671cb44e0404fc2c3352.tar.gz
Pass byte strings to six.binary_type
Python3 needs a byte string as argument to six.binary_types. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/utilities.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/utilities.py b/sos/utilities.py
index 1db23b63..e65df349 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 = six.binary_type("")
+ stdout = six.binary_type(b"")
return {'status': p.returncode, 'output': stdout.decode('utf-8')}