diff options
| author | Tim Graham <timograham@gmail.com> | 2019-02-11 13:40:04 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-11 13:46:03 -0500 |
| commit | 392e040647403fc8007708d52ce01d915b014849 (patch) | |
| tree | 7f0e85a1404c5787d441f1e2909b608caa410df6 /django | |
| parent | 6d0a3002ed727fc1ce54d58226eb0dddbb2f4e31 (diff) | |
[2.0.x] Fixed #30177 -- Fixed format_number() crash with over 200 digits.
There are existing test failures. The incorrect patch was applied
in 1f42f82566c9d2d73aff1c42790d6b1b243f7676.
Diffstat (limited to 'django')
| -rw-r--r-- | django/utils/numberformat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/numberformat.py b/django/utils/numberformat.py index 5814c454a4..d8157fce93 100644 --- a/django/utils/numberformat.py +++ b/django/utils/numberformat.py @@ -36,7 +36,7 @@ def format(number, decimal_sep, decimal_pos=None, grouping=0, thousand_sep='', # Format the coefficient. coefficient = format( coefficient, decimal_sep, decimal_pos, grouping, - thousand_sep, force_grouping, use_l10n, + thousand_sep, force_grouping, ) return '{}e{}'.format(coefficient, exponent) else: |
