since str() is incorrect in python2.x. This also fixes an indentation
error.

Signed-off-by: Dylan Baker <dylanx.c.ba...@intel.com>
---
 framework/backends/json.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/backends/json.py b/framework/backends/json.py
index f279f2f..cf7f119 100644
--- a/framework/backends/json.py
+++ b/framework/backends/json.py
@@ -279,7 +279,7 @@ def _load(results_file):
         raise exceptions.PiglitFatalError(
             'While loading json results file: "{}",\n'
             'the following error occurred:\n{}'.format(results_file.name,
-                                                      str(e)))
+                                                       six.text_type(e)))
 
     if isinstance(result, results.TestrunResult):
         return result
-- 
git-series 0.8.10
_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to