Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion redisearch/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
def to_string(s):
if isinstance(s, six.string_types):
return s
elif isinstance(s, bytes):
elif isinstance(s, six.binary_type):
return s.decode('utf-8')
else:
return s # Not a string we care about
2 changes: 1 addition & 1 deletion redisearch/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def spellcheck(self, query, distance=None, include=None, exclude=None):
return corrections

for _correction in raw:
if isinstance(_correction, long) and _correction == 0:
if isinstance(_correction, six.integer_types) and _correction == 0:
continue

if len(_correction) != 3:
Expand Down