From defd70cef9108ed186b35b02bdf56f71945d41fc Mon Sep 17 00:00:00 2001 From: "ting.wang" Date: Sat, 16 Jan 2016 13:02:00 +0800 Subject: Use dict.items() for adding Python 3 compatibility Replacing dict.iteritems()/.itervalues() with six.iteritems(dict)/six.itervalues(dict) was preferred in the past, but there was a discussion suggesting to avoid six for this. ref: http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html Partially implements: blueprint python3 Change-Id: Ie931bc02f558f6db3677b44f645eb3bdf78ccae8 --- kolla/common/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kolla/common') diff --git a/kolla/common/config.py b/kolla/common/config.py index 478d2a5d2..bc821e025 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -240,7 +240,7 @@ def get_source_opts(type_=None, location=None, reference=None): def gen_all_source_opts(): - for name, params in SOURCES.iteritems(): + for name, params in SOURCES.items(): type_ = params['type'] location = params['location'] reference = params.get('reference') -- cgit v1.2.3