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): def _x_format(self):
"""Return the value formatter for this graph""" """Return the value formatter for this graph"""
return self.x_value_formatter or ( return self.x_value_formatter or (
humanize if self.human_readable else str) humanize if self.human_readable else to_str)
@property @property
def _format(self): def _format(self):
"""Return the value formatter for this graph""" """Return the value formatter for this graph"""
return self.value_formatter or ( return self.value_formatter or (
humanize if self.human_readable else str) humanize if self.human_readable else to_str)
def _compute(self): def _compute(self):
"""Initial computations to draw the graph""" """Initial computations to draw the graph"""

Loading…
Cancel
Save