Skip to content

Commit

Permalink
Avoid deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Nov 22, 2018
1 parent c34b128 commit ddf10d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/document.py
Expand Up @@ -90,7 +90,7 @@ def _locale_float(number):
https://bugs.python.org/issue33954
"""
return locale.format('%f', number)
return locale.format_string('%f', number)


def rectangle_aabb(matrix, pos_x, pos_y, width, height):
Expand Down

0 comments on commit ddf10d2

Please sign in to comment.