]> granicus.if.org Git - python/commit
Resolution of bug #997368, "strftime() backward compatibility".
authorBarry Warsaw <barry@python.org>
Sat, 7 Aug 2004 16:38:40 +0000 (16:38 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 7 Aug 2004 16:38:40 +0000 (16:38 +0000)
commite8bedeb45b134e7ae033560353ba064738170cd3
tree907fce19729560604ac9a2da59efc4c5a6741fd6
parent2c178253bd1f78545d412670c59060dc7c676f8c
Resolution of bug #997368, "strftime() backward compatibility".

Specifically, time.strftime() no longer accepts a 0 in the yday position of a
time tuple, since that can crash some platform strftime() implementations.

parsedate_tz(): Change the return value to return 1 in the yday position.

Update tests in test_rfc822.py and test_email.py
Lib/email/_parseaddr.py
Lib/email/test/test_email.py
Lib/rfc822.py
Lib/test/test_rfc822.py