From b9244cfb89f786701fdb905268854776f5feddeb Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 22 Aug 2011 08:06:52 +0000 Subject: [PATCH] Silenced a "classic division" warning in floatformat template filter. Fixes #16514. Thanks, Mike Blume. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16649 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/template/defaultfilters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 13de9d5334..21863e2a3f 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -91,7 +91,7 @@ fix_ampersands_filter.is_safe=True # (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):