summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2011-08-22 08:06:52 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2011-08-22 08:06:52 +0000
commitb9244cfb89f786701fdb905268854776f5feddeb (patch)
tree185271cb711706050fd245576ea9f38235e4a800
parent3afe409d0ea9d2e3e1dc70abd4bc1cc1a916daf9 (diff)
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
-rw-r--r--django/template/defaultfilters.py2
1 files changed, 1 insertions, 1 deletions
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):