diff options
author | loooosy <syluo5695@fiberhome.com> | 2017-04-05 19:44:14 +0800 |
---|---|---|
committer | loooosy <syluo5695@fiberhome.com> | 2017-04-07 15:23:50 +0800 |
commit | d72b0b9fac9b5a79a9a156b493d36395743dc5a7 (patch) | |
tree | 985d4c8e800ae3fe31e13a98f2df19fc904e4779 /extraconfig/tasks/post_puppet_pacemaker.yaml | |
parent | 29faa38ddca3a91d6944bdda8daceda4dde2b128 (diff) |
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
Diffstat (limited to 'extraconfig/tasks/post_puppet_pacemaker.yaml')
0 files changed, 0 insertions, 0 deletions