Skip to content

Commit

Permalink
druid: use six.string_types instead of basestring (#2541)
Browse files Browse the repository at this point in the history
Which is not available in python3

Fix #2539
  • Loading branch information
xrmx authored and mistercrunch committed Apr 3, 2017
1 parent 243eead commit 0c0666c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/connectors/druid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,10 +982,10 @@ def get_filters(self, raw_filters): # noqa
if op in ('in', 'not in'):
eq = [
types.replace("'", '').strip()
if isinstance(types, basestring)
if isinstance(types, string_types)
else types
for types in eq]
elif not isinstance(flt['val'], basestring):
elif not isinstance(flt['val'], string_types):
eq = eq[0] if len(eq) > 0 else ''
if col in self.num_cols:
if op in ('in', 'not in'):
Expand Down

0 comments on commit 0c0666c

Please sign in to comment.