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
This commit is contained in:
Malcolm Tredinnick 2011-08-22 08:06:52 +00:00
parent 3afe409d0e
commit b9244cfb89
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ fix_ampersands_filter.is_safe=True
# (see Python Issue757815 and Issue1080440). # (see Python Issue757815 and Issue1080440).
pos_inf = 1e200 * 1e200 pos_inf = 1e200 * 1e200
neg_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)] special_floats = [str(pos_inf), str(neg_inf), str(nan)]
def floatformat(text, arg=-1): def floatformat(text, arg=-1):