summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-08-15 17:50:32 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-08-15 17:51:11 -0700
commitbf15098782f77d750313a60cb2d4ae61529b369d (patch)
treec9d25e7479057f8cc083b531eb34d5aa22d71fcd
parent7d5cc542a9bfa35cba6d2b681e0cf5f90bc77d40 (diff)
html_template: can't use iteritems, use items
iteritems is not supported in Python 3 we have to use items() Change-Id: Ib923dfea4220eeab311949c9f6f420fef378e98a Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
-rw-r--r--yardstick/common/html_template.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/common/html_template.py b/yardstick/common/html_template.py
index f030a2f6c..e17c76637 100644
--- a/yardstick/common/html_template.py
+++ b/yardstick/common/html_template.py
@@ -158,7 +158,7 @@ report_template = """
<th>value</th>
</tr>
<tbody>
- {% for key, value in result.info.iteritems() %}
+ {% for key, value in result.info.items() %}
<tr>
<td>{{ loop.index }}</td>
<td>{{key}}</td>
@@ -177,7 +177,7 @@ report_template = """
<th>value</th>
</tr>
<tbody>
- {% for key, value in result.testcases.iteritems() %}
+ {% for key, value in result.testcases.items() %}
<tr>
<td>{{ loop.index }}</td>
<td>{{key}}</td>