Skip to content

Commit

Permalink
[hotfix] fix py3 compatibility broken by basestring
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jul 11, 2016
1 parent 3c92ba9 commit 9d7c05a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion caravel/viz.py
Expand Up @@ -1491,7 +1491,7 @@ def get_data(self):
d = df.to_dict(orient='records')
for row in d:
country = None
if isinstance(row['country'], basestring):
if isinstance(row['country'], string_types):
country = countries.get(
self.form_data.get('country_fieldtype'), row['country'])

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -31,6 +31,7 @@
'python-dateutil==2.5.3',
'requests==2.10.0',
'simplejson==3.8.2',
'six==1.10.0',
'sqlalchemy==1.0.13',
'sqlalchemy-utils==0.32.7',
'sqlparse==0.1.19',
Expand Down

0 comments on commit 9d7c05a

Please sign in to comment.