From 7298f23fa40c63103992263e705b9e32a6f18bc3 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Mon, 31 Aug 2015 11:23:39 +0200 Subject: [PATCH] python 2 str -> to_str --- pygal/graph/graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygal/graph/graph.py b/pygal/graph/graph.py index 555fe62..c4104ed 100644 --- a/pygal/graph/graph.py +++ b/pygal/graph/graph.py @@ -539,13 +539,13 @@ class Graph(PublicApi): def _x_format(self): """Return the value formatter for this graph""" return self.x_value_formatter or ( - humanize if self.human_readable else str) + humanize if self.human_readable else to_str) @property def _format(self): """Return the value formatter for this graph""" return self.value_formatter or ( - humanize if self.human_readable else str) + humanize if self.human_readable else to_str) def _compute(self): """Initial computations to draw the graph"""