Permalink
Browse files

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
  • Loading branch information...
malcolmt committed Aug 22, 2011
1 parent 3afe409 commit b9244cfb89f786701fdb905268854776f5feddeb
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/defaultfilters.py
@@ -91,7 +91,7 @@ def fix_ampersands_filter(value):
# (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):

0 comments on commit b9244cf

Please sign in to comment.