]> git.ipfire.org Git - thirdparty/babel.git/commit
Retain the behaviour of format in numbers.format_currency
authorCraig Loftus <craig@regulusweb.com>
Mon, 17 Aug 2015 09:34:59 +0000 (10:34 +0100)
committerIsaac Jurado <diptongo@gmail.com>
Sun, 27 Sep 2015 13:18:43 +0000 (15:18 +0200)
commit15ad946567a35132912329a35225176a8e34d525
tree5ea401bbb85be4eebfac35601ce4d442b016bc25
parentdf676ab8dbeabb48e2a60ff8da74fc3bee21a979
Retain the behaviour of format in numbers.format_currency

Previous commit introduced an API change by changing the behaviour of
the format param, instead this commit adds a format_type param and the
documentation and tests to accompany it.

Note that currency_formats returns a NumberPattern already, so there is
no need to call parse_pattern on the value returned.
babel/numbers.py
tests/test_numbers.py