File decode-subprocess_get_response-results.diff of Package koan

From f80e299b2990e7ce21bdb6b154c1acf4890ad448 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion@nwra.com>
Date: Thu, 24 Oct 2019 15:46:05 -0600
Subject: [PATCH] Also decode subprocess_get_response results

---
 koan/utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: koan-2.9.0/koan/utils.py
===================================================================
--- koan-2.9.0.orig/koan/utils.py
+++ koan-2.9.0/koan/utils.py
@@ -174,8 +174,8 @@ def subprocess_get_response(cmd, ignore_
     if not ignore_rc and rc != 0:
         raise InfoException("command failed (%s)" % rc)
     if get_stderr:
-        return rc, result, stderr_result
-    return rc, result
+        return rc, result.decode(), stderr_result.decode()
+    return rc, result.decode()
 
 
 def input_string_or_dict(options, delim=None, allow_multiples=True):
openSUSE Build Service is sponsored by