Replace six.iteritems() with .items()
In Openstack Compute(Nova) project, six.iteritems() statement is already replaced by .item().
The related Nova bp: https:/
The main contents of that bp are as follows:
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 be more readable.
2.In py2, the performance about list should be negligible, see the link [2].
[1] https:/
[2] http://
Nova as one of the three major components, the replace-
So I register this BP in launchpad. Because the code affected in openstackclient is huge, so it may be reasonable to split the code changes into several patches.
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
[1/3]Replace six.iteritems() with .items()
Addressed by: https:/
[2/3]Replace six.iteritems() with .items()
Addressed by: https:/
[3/3]Replace six.iteritems() with .items()
Gerrit topic: https:/
Addressed by: https:/
Replace six.iteritems() with .items()
Addressed by: https:/
Replace six.iteritems() with .items()