Commit b7974f42 by dgrtwo

Changed basestring in datatypes.py to six.string_types[0] for Python 3 compatibility

parent 290d95af
...@@ -67,7 +67,8 @@ class ParseType(object): ...@@ -67,7 +67,8 @@ class ParseType(object):
ParseResource: Pointer ParseResource: Pointer
} }
if hasattr(python_object, '__iter__') and not isinstance(python_object, (basestring, ParseType)): if (hasattr(python_object, '__iter__') and
not isinstance(python_object, (six.string_types[0], ParseType))):
# It's an iterable? Repeat this whole process on each object # It's an iterable? Repeat this whole process on each object
return [ParseType.convert_to_parse(o, as_pointer=as_pointer) return [ParseType.convert_to_parse(o, as_pointer=as_pointer)
for o in python_object] 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