html_template: can't use iteritems, use items 69/39369/1
authorRoss Brattain <ross.b.brattain@intel.com>
Wed, 16 Aug 2017 00:50:32 +0000 (17:50 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Wed, 16 Aug 2017 00:51:11 +0000 (17:51 -0700)
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>
yardstick/common/html_template.py

index f030a2f..e17c766 100644 (file)
@@ -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>