Commit aadb3ab6 by Miles Richardson Committed by GitHub

Merge pull request #143 from teehamaral/fix-dict-attribute

Fix error iteration on dictionary python
parents 7d90dd8c 57c1d760
......@@ -73,7 +73,7 @@ class ParseType(object):
not isinstance(python_object, (six.string_types[0], ParseType))):
# It's an iterable? Repeat this whole process on each object
if isinstance(python_object, dict):
for key, value in python_object.iteritems():
for key, value in python_object.items():
python_object[key]=ParseType.convert_to_parse(value, as_pointer=as_pointer)
return python_object
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment