From: Ross Brattain Date: Wed, 16 Aug 2017 00:50:32 +0000 (-0700) Subject: html_template: can't use iteritems, use items X-Git-Tag: opnfv-5.0.RC1~268 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=bf15098782f77d750313a60cb2d4ae61529b369d;p=yardstick.git 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 --- 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 = """ value - {% for key, value in result.info.iteritems() %} + {% for key, value in result.info.items() %} {{ loop.index }} {{key}} @@ -177,7 +177,7 @@ report_template = """ value - {% for key, value in result.testcases.iteritems() %} + {% for key, value in result.testcases.items() %} {{ loop.index }} {{key}}