summaryrefslogtreecommitdiff
path: root/django/utils/http.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-09-26 21:10:17 +0200
committerClaude Paroz <claude@2xlibre.net>2012-09-26 21:10:17 +0200
commitb3ee80a0cf0e60876f03b797d2bdc69505dbdfcb (patch)
tree74bc8a83f69c313a154aabca6727ec20f5129294 /django/utils/http.py
parentbb7da7844ff9f11286509c22a2549bbd4553d58d (diff)
Fixed parse_http_date docstring and moved related tests
Refs #18675.
Diffstat (limited to 'django/utils/http.py')
-rw-r--r--django/utils/http.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/utils/http.py b/django/utils/http.py
index d3c70f1209..1c3b0039b5 100644
--- a/django/utils/http.py
+++ b/django/utils/http.py
@@ -118,8 +118,7 @@ def parse_http_date(date):
The three formats allowed by the RFC are accepted, even if only the first
one is still in widespread use.
- Returns an floating point number expressed in seconds since the epoch, in
- UTC.
+ Returns an integer expressed in seconds since the epoch, in UTC.
"""
# emails.Util.parsedate does the job for RFC1123 dates; unfortunately
# RFC2616 makes it mandatory to support RFC850 dates too. So we roll