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/05/29 17:33:31 UTC

[incubator-superset] branch master updated: Fix python2 str() in visualization (#5093)

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 4592677  Fix python2 str() in visualization (#5093)
4592677 is described below

commit 459267785fab9a1d7da7a19f579d16b63f84b089
Author: zjj <jj...@yuzao.org>
AuthorDate: Wed May 30 01:33:22 2018 +0800

    Fix python2 str() in visualization (#5093)
---
 superset/viz.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/superset/viz.py b/superset/viz.py
index db09fb2..1086af8 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -1089,11 +1089,11 @@ class NVD3TimeSeriesViz(NVD3Viz):
             if df[name].dtype.kind not in 'biufc':
                 continue
             if isinstance(name, list):
-                series_title = [str(title) for title in name]
+                series_title = [text_type(title) for title in name]
             elif isinstance(name, tuple):
-                series_title = tuple(str(title) for title in name)
+                series_title = tuple(text_type(title) for title in name)
             else:
-                series_title = str(name)
+                series_title = text_type(name)
             if (
                     isinstance(series_title, (list, tuple)) and
                     len(series_title) > 1 and

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.