From b3ee80a0cf0e60876f03b797d2bdc69505dbdfcb Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 26 Sep 2012 21:10:17 +0200 Subject: Fixed parse_http_date docstring and moved related tests Refs #18675. --- django/utils/http.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'django/utils') 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 -- cgit v1.3