]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
parsedate_tz(): Return a 1 in the tm_yday field so that the value is
authorBarry Warsaw <barry@python.org>
Fri, 3 Feb 2006 04:41:24 +0000 (04:41 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 3 Feb 2006 04:41:24 +0000 (04:41 +0000)
commit08bc84c8dac5d866728ff90c38f62d2e6792276b
tree98ebbd121ff77655f156c8241a0c1fd9c9573845
parent9b55f08ceaf681be612ad7ff7a6e5aaa38611346
parsedate_tz(): Return a 1 in the tm_yday field so that the value is
acceptable to Python 2.4's time.strftime().  This fix mirrors the behavior in
email 3.0.  That field is documented as being "not useable" so it might as
well not be buggy too <wink>.

Add a test for this behavior and update a few tests that were expecting a 0 in
this field.  After committing I will run the entire Python 2.3 test suite to
ensure this doesn't break any Python tests.
Lib/email/_parseaddr.py
Lib/email/test/test_email.py