Skip to content

Commit

Permalink
call next() the right way (#4804)
Browse files Browse the repository at this point in the history
  • Loading branch information
timifasubaa authored and mistercrunch committed Apr 11, 2018
1 parent 3c29ca7 commit 20f46ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ def create_table_from_csv(form, table):
"""Uploads a csv file and creates a superset datasource in Hive."""
def get_column_names(filepath):
with open(filepath, 'rb') as f:
return unicodecsv.reader(f, encoding='utf-8-sig').next()
return next(unicodecsv.reader(f, encoding='utf-8-sig'))

table_name = form.name.data
filename = form.csv_file.data.filename
Expand Down

0 comments on commit 20f46ee

Please sign in to comment.