From 7adb3f548b952feca4c46c2d620a1c57e34165e5 Mon Sep 17 00:00:00 2001 From: yanghuichan Date: Thu, 20 Jul 2017 16:53:25 +0800 Subject: [PATCH] Replace dict.iteritems() with dict.items() in horizon 1.As mentioned in [1], we should avoid using dict.iteritems() to achieve iterators. We can use dict.items instead, as it will return iterators in PY3 as well. And dict.items/keys will more readable. 2.In py2, the performance about list should be negligible, see the link [2]. [1] https://wiki.openstack.org/wiki/Python3 [2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.htmls Change-Id: Idba02079d76b529b344ae96cebb7d6161c0ecbc6 --- horizon/templates/horizon/_sidebar.html | 2 +- horizon/templates/horizon/_subnav_list.html | 2 +- .../integration_tests/pages/project/compute/imagespage.py | 4 ++-- .../themes/material/templates/horizon/_sidebar.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/horizon/templates/horizon/_sidebar.html b/horizon/templates/horizon/_sidebar.html index f350b2cc0b..abedd46d0c 100644 --- a/horizon/templates/horizon/_sidebar.html +++ b/horizon/templates/horizon/_sidebar.html @@ -16,7 +16,7 @@