aboutsummaryrefslogtreecommitdiff
path: root/kolla/common
diff options
context:
space:
mode:
authorting.wang <ting.wang@easystack.cn>2016-01-16 13:02:00 +0800
committerting.wang <ting.wang@easystack.cn>2016-01-16 13:44:16 +0800
commitdefd70cef9108ed186b35b02bdf56f71945d41fc (patch)
treed7e42a41b89d0e5a46114024c3b2b7f96581dbd8 /kolla/common
parenta755aa88e4454b2b4540c7b1e48f3e6d4e963edb (diff)
downloadkolla-defd70cef9108ed186b35b02bdf56f71945d41fc.tar.gz
kolla-defd70cef9108ed186b35b02bdf56f71945d41fc.zip
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
Diffstat (limited to 'kolla/common')
-rw-r--r--kolla/common/config.py2
1 files changed, 1 insertions, 1 deletions
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')