Commit e4241240 by Roman Krejčík

Merge pull request #61 from tony-osibov/master

fixed python 3 issue with str having __iter__ attribute
parents 8dd126ff 8245aba2
......@@ -60,7 +60,7 @@ class ParseType(object):
ParseResource: Pointer
}
if hasattr(python_object, '__iter__'):
if hasattr(python_object, '__iter__') and not isinstance(python_object, str):
# It's an iterable? Repeat this whole process on each object
return [ParseType.convert_to_parse(o, as_pointer=as_pointer)
for o in python_object]
......
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