Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
fixed python 3 issue with str having __iter__ attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-osibov committed Oct 20, 2014
1 parent 8dd126f commit 8245aba
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 8245aba

Please sign in to comment.