1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #26580 -- Updated references to obsolete RFC 2822.

Didn't rename django.utils.feedgenerator.rfc2822_date()
as some external code may rely on it.
This commit is contained in:
Vasiliy Faronov
2016-05-04 13:45:31 +03:00
committed by Tim Graham
parent 207c5b4acd
commit 31e0314979
3 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ class BadHeaderError(ValueError):
# TODO: replace with email.utils.make_msgid(.., domain=DNS_NAME) when dropping
# Python 2 (Python 2's version doesn't have domain parameter) (#23905).
def make_msgid(idstring=None, domain=None):
"""Returns a string suitable for RFC 2822 compliant Message-ID, e.g:
"""Returns a string suitable for RFC 5322 compliant Message-ID, e.g:
<20020201195627.33539.96671@nightshade.la.mastaler.com>

View File

@@ -293,7 +293,7 @@ class DateFormat(TimeFormat):
return self.data.isocalendar()[0]
def r(self):
"RFC 2822 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'"
"RFC 5322 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'"
return self.format('D, j M Y H:i:s O')
def S(self):