mirror of https://github.com/apache/superset.git
druid: use six.string_types instead of basestring (#2541)
Which is not available in python3 Fix #2539
This commit is contained in:
parent
243eeadfd6
commit
0c0666caa0
|
@ -982,10 +982,10 @@ class DruidDatasource(Model, BaseDatasource):
|
|||
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'):
|
||||
|
|
Loading…
Reference in New Issue