Skip to content

Commit

Permalink
Merge pull request #61 from tony-osibov/master
Browse files Browse the repository at this point in the history
fixed python 3 issue with str having __iter__ attribute
  • Loading branch information
farin committed Oct 20, 2014
2 parents 8dd126f + 8245aba commit e424124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse_rest/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def convert_to_parse(python_object, as_pointer=False):
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]
Expand Down

0 comments on commit e424124

Please sign in to comment.