superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: call next() the right way (#4804)
Date Wed, 11 Apr 2018 20:20:17 GMT
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 <30888507+timifasubaa@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.

Mime
View raw message