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:
rajat29 2017-04-04 15:05:29 +05:30
parent 4b9d14cad8
commit c8e70e35d6
1 changed files with 1 additions and 1 deletions

View File

@ -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: