summaryrefslogtreecommitdiff
path: root/heatclient/v1/events.py
diff options
context:
space:
mode:
authorM V P Nitesh <m.nitesh@nectechnologies.in>2017-03-31 15:15:17 +0530
committerM V P Nitesh <m.nitesh@nectechnologies.in>2017-03-31 15:16:54 +0530
commit61aa092ce5cdee495e6faf63c36419e5583d3627 (patch)
treedb02760894ea1da0f1489197470acad35d919b7c /heatclient/v1/events.py
parent954e475a6a0a12432ec325d7579460fabcf3f40a (diff)
downloadpython-heatclient-61aa092ce5cdee495e6faf63c36419e5583d3627.tar.gz
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: I3913e8876b34e112140788d7a405da6eedfb5f29
Diffstat (limited to 'heatclient/v1/events.py')
-rw-r--r--heatclient/v1/events.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/heatclient/v1/events.py b/heatclient/v1/events.py
index 2951712..8430d75 100644
--- a/heatclient/v1/events.py
+++ b/heatclient/v1/events.py
@@ -15,7 +15,6 @@
import collections
from oslo_utils import encodeutils
-import six
from six.moves.urllib import parse
from heatclient.common import base
@@ -54,7 +53,7 @@ class EventManager(stacks.StackChildManager):
filters = kwargs.pop('filters')
params.update(filters)
- for key, value in six.iteritems(kwargs):
+ for key, value in kwargs.items():
if value:
params[key] = value