Use items() instead of iteritems().

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-08-29 02:05:02 -04:00
parent eab3b660cb
commit 93431c09ce

View File

@@ -188,7 +188,7 @@ class ModelAttribute(object):
result = []
try:
for type_name, attributes in cls.__registry[model].iteritems():
for type_name, attributes in cls.__registry[model].items():
if not type_names or type_name in type_names:
result.extend(attributes)