summaryrefslogtreecommitdiff
path: root/django/utils/http.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-10-13 15:36:09 -0400
committerTim Graham <timograham@gmail.com>2017-10-13 15:36:09 -0400
commitf2868f97399955650c47c948dc57c376bebb67b1 (patch)
tree85f9fe15da4f413388913ccdfd906d4d6579cb8f /django/utils/http.py
parent4f27e475b30d0cf91be24f3116a54b17789ac403 (diff)
Updated email.Util (Python 2) references to email.utils (Python 3).
Diffstat (limited to 'django/utils/http.py')
-rw-r--r--django/utils/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/http.py b/django/utils/http.py
index 4fbb786d89..48dacf4b28 100644
--- a/django/utils/http.py
+++ b/django/utils/http.py
@@ -145,7 +145,7 @@ def parse_http_date(date):
Return an integer expressed in seconds since the epoch, in UTC.
"""
- # emails.Util.parsedate does the job for RFC1123 dates; unfortunately
+ # email.utils.parsedate() does the job for RFC1123 dates; unfortunately
# RFC7231 makes it mandatory to support RFC850 dates too. So we roll
# our own RFC-compliant parsing.
for regex in RFC1123_DATE, RFC850_DATE, ASCTIME_DATE: