Merge "Replace dict.iteritems with six.iteritems"

This commit is contained in:
Jenkins 2017-07-21 21:37:12 +00:00 committed by Gerrit Code Review
commit c72de31759

View File

@ -183,7 +183,7 @@ def headers_to_object_info(headers, status_int=HTTP_OK):
"""
headers, meta, sysmeta = _prep_headers_to_info(headers, 'object')
transient_sysmeta = {}
for key, val in headers.iteritems():
for key, val in six.iteritems(headers):
if is_object_transient_sysmeta(key):
key = strip_object_transient_sysmeta_prefix(key.lower())
transient_sysmeta[key] = val