You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2018/04/11 20:20:17 UTC
[incubator-superset] branch master updated: call next() the right
way (#4804)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 20f46ee call next() the right way (#4804)
20f46ee is described below
commit 20f46eede570f5c2da13294ac968596c34314661
Author: timifasubaa <30...@users.noreply.github.com>
AuthorDate: Wed Apr 11 13:20:14 2018 -0700
call next() the right way (#4804)
---
superset/db_engine_specs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index 85ff9db..d239f89 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -869,7 +869,7 @@ class HiveEngineSpec(PrestoEngineSpec):
"""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
--
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.