Replace six.iteritems() with .items()
authorloooosy <syluo5695@fiberhome.com>
Wed, 5 Apr 2017 11:44:14 +0000 (19:44 +0800)
committerloooosy <syluo5695@fiberhome.com>
Fri, 7 Apr 2017 07:23:50 +0000 (15:23 +0800)
commitd72b0b9fac9b5a79a9a156b493d36395743dc5a7
tree985d4c8e800ae3fe31e13a98f2df19fc904e4779
parent29faa38ddca3a91d6944bdda8daceda4dde2b128
Replace six.iteritems() with .items()

1.As mentioned in [1], we should avoid using
six.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.html

Change-Id: I7c8f540eced0731f4dfb1dfd045828b5a9bb6c67
tools/yaml-nic-config-2-script.py