Replace six.iteritems() with .items()
We should avoid using six.iteritems to achieve iterators. We can use dict.items instead, as it will return iterators in PY3 as well. And dict.items/keys will more readable. Change-Id: I974a9e5001266aab878bf77af001d1ba61d761e2
This commit is contained in:
parent
4b9d14cad8
commit
c8e70e35d6
|
@ -134,7 +134,7 @@ def validate_dimensions(dimensions):
|
|||
* :py:data:`DIMENSION_VALUE_CONSTRAINTS`
|
||||
"""
|
||||
try:
|
||||
for dim_name, dim_value in six.iteritems(dimensions):
|
||||
for dim_name, dim_value in dimensions.items():
|
||||
_validate_dimension_name(dim_name)
|
||||
_validate_dimension_value(dim_value)
|
||||
except AttributeError:
|
||||
|
|
Loading…
Reference in New Issue