Skip to content

Commit

Permalink
python 2 str -> to_str
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Aug 31, 2015
1 parent 28037d9 commit 7298f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygal/graph/graph.py
Expand Up @@ -539,13 +539,13 @@ def all_series(self):
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"""
Expand Down

0 comments on commit 7298f23

Please sign in to comment.