[v3,1/3] framework/backends/json: replace str() with six.text_type()

Submitted by Dylan Baker on Oct. 12, 2016, 8:59 p.m.

Details

Message ID 03566578a974125f0c089af3daf38df58addd063.1476305456.git-series.dylan@pnwbakers.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Dylan Baker Oct. 12, 2016, 8:59 p.m.
since str() is incorrect in python2.x. This also fixes an indentation
error.

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

Patch hide | download patch | download mbox

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