From commits-return-1030-archive-asf-public=cust-asf.ponee.io@superset.incubator.apache.org Tue May 29 19:33:33 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1F45F180648 for ; Tue, 29 May 2018 19:33:32 +0200 (CEST) Received: (qmail 35995 invoked by uid 500); 29 May 2018 17:33:32 -0000 Mailing-List: contact commits-help@superset.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.incubator.apache.org Delivered-To: mailing list commits@superset.incubator.apache.org Received: (qmail 35985 invoked by uid 99); 29 May 2018 17:33:32 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2018 17:33:32 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 6F85E82978; Tue, 29 May 2018 17:33:31 +0000 (UTC) Date: Tue, 29 May 2018 17:33:31 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: Fix python2 str() in visualization (#5093) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152761521108.19989.1959450721370093212@gitbox.apache.org> From: maximebeauchemin@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-superset X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: c18ef8903409c20b8526b9acd12d3ba1c4c3664b X-Git-Newrev: 459267785fab9a1d7da7a19f579d16b63f84b089 X-Git-Rev: 459267785fab9a1d7da7a19f579d16b63f84b089 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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.