Author: mtredinnick Date: 2011-08-22 01:06:52 -0700 (Mon, 22 Aug 2011) New Revision: 16649
Modified: django/trunk/django/template/defaultfilters.py Log: Silenced a "classic division" warning in floatformat template filter. Fixes #16514. Thanks, Mike Blume. Modified: django/trunk/django/template/defaultfilters.py =================================================================== --- django/trunk/django/template/defaultfilters.py 2011-08-22 07:40:12 UTC (rev 16648) +++ django/trunk/django/template/defaultfilters.py 2011-08-22 08:06:52 UTC (rev 16649) @@ -91,7 +91,7 @@ # (see Python Issue757815 and Issue1080440). pos_inf = 1e200 * 1e200 neg_inf = -1e200 * 1e200 -nan = (1e200 * 1e200) / (1e200 * 1e200) +nan = (1e200 * 1e200) // (1e200 * 1e200) special_floats = [str(pos_inf), str(neg_inf), str(nan)] def floatformat(text, arg=-1): -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
