summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorting.wang <ting.wang@easystack.cn>2016-02-24 10:14:56 +0800
committerting.wang <ting.wang@easystack.cn>2016-02-24 10:14:56 +0800
commite47c83d47a10df2cef77128c0252fbae69730603 (patch)
treef4fb0f54d154cfcd550590e8105be4f44efdea31
parent58be3bcf790b3c6b20b44bb2ea286bf88f2da3fa (diff)
downloadpython-openstackclient-e47c83d47a10df2cef77128c0252fbae69730603.tar.gz
Py3 replace dict.iteritems with six.iteritems
All dict.iteritems in osc are replaced with six.iteritems except this one. So fix it to add py3 compatibility. Change-Id: I1aa51399a36e650d262d839ce2b4ec04d3f91db2
-rw-r--r--openstackclient/api/object_store_v1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/api/object_store_v1.py b/openstackclient/api/object_store_v1.py
index 307c8fe2..10139ea1 100644
--- a/openstackclient/api/object_store_v1.py
+++ b/openstackclient/api/object_store_v1.py
@@ -551,7 +551,7 @@ class APIv1(api.BaseAPI):
log = logging.getLogger(__name__ + '._set_properties')
headers = {}
- for k, v in properties.iteritems():
+ for k, v in six.iteritems(properties):
if not utils.is_ascii(k) or not utils.is_ascii(v):
log.error('Cannot set property %s to non-ascii value', k)
continue