From 46aa0f882a912e4e39075df40ad7855390ffa382 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Wed, 12 Feb 2014 00:59:41 +0100 Subject: [PATCH] Python3: use six.iteritems() rather than dict.iteritems() This is compatible with both Python 2 and 3. Change-Id: If8c3a4a6fe028a3a1dc6899f0f4e65c89403d267 --- heatclient/v1/stacks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/heatclient/v1/stacks.py b/heatclient/v1/stacks.py index 44990e56..efbbef7f 100644 --- a/heatclient/v1/stacks.py +++ b/heatclient/v1/stacks.py @@ -13,6 +13,7 @@ # License for the specific language governing permissions and limitations # under the License. import copy +import six from heatclient.openstack.common.apiclient import base from heatclient.openstack.common.py3kcompat import urlutils @@ -98,7 +99,7 @@ class StackManager(base.BaseManager): filters = kwargs.pop('filters') params.update(filters) - for key, value in kwargs.iteritems(): + for key, value in six.iteritems(kwargs): if value: params[key] = value