Ticket #16514: classic_division_fix.diff
File classic_division_fix.diff, 515 bytes (added by , 13 years ago) |
---|
-
django/template/defaultfilters.py
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters. index b68cc03..c444830 100644
a b fix_ampersands_filter.is_safe=True 90 90 # (see Python Issue757815 and Issue1080440). 91 91 pos_inf = 1e200 * 1e200 92 92 neg_inf = -1e200 * 1e200 93 nan = (1e200 * 1e200) / (1e200 * 1e200)93 nan = (1e200 * 1e200) // (1e200 * 1e200) 94 94 special_floats = [str(pos_inf), str(neg_inf), str(nan)] 95 95 96 96 def floatformat(text, arg=-1):