mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
druid: use six.string_types instead of basestring (#2541)
Which is not available in python3 Fix #2539
This commit is contained in:
committed by
Maxime Beauchemin
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'):
|
||||
|
||||
Reference in New Issue
Block a user