Browse Source

python 2 str -> to_str

pull/264/head
Florian Mounier 9 years ago
parent
commit
7298f23fa4
  1. 4
      pygal/graph/graph.py

4
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"""

Loading…
Cancel
Save