]> granicus.if.org Git - python/commit
#1194222: make parsedate always return RFC2822 four character years.
authorR. David Murray <rdmurray@bitdance.com>
Wed, 25 Aug 2010 00:45:55 +0000 (00:45 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Wed, 25 Aug 2010 00:45:55 +0000 (00:45 +0000)
commit219d1c8ae320bf1b016f4a4fc5dee50f729048be
tree3ea22eb0b5ef43206c1765b95c95ead4c5a911a6
parent1970b62aee9ccedd83dea0df57bf0e0e63861cbe
#1194222: make parsedate always return RFC2822 four character years.

Two character years are now converted to four character years using
the Posix standard rule (<68 == 2000, >=68==1900).  This makes the
parsed date RFC2822 compliant even if the input is not.

Patch and test by Jeffrey Finkelstein.
Lib/email/_parseaddr.py
Lib/email/test/test_email.py
Misc/ACKS
Misc/NEWS