]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Have strftime() check its time tuple argument to make sure the tuple's values
authorBrett Cannon <bcannon@gmail.com>
Tue, 2 Mar 2004 04:38:10 +0000 (04:38 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 2 Mar 2004 04:38:10 +0000 (04:38 +0000)
commitd1080a3418b2a162b44d0d5738a6da2276133eb7
tree73902ccab6d9c184e726722e1e999fc460b5a90b
parent0a4977c2f3b8b3cd80f326f44e87076b2578b1b6
Have strftime() check its time tuple argument to make sure the tuple's values
are within proper boundaries as specified in the docs.

This can break possible code (datetime module needed changing, for instance)
that uses 0 for values that need to be greater 1 or greater (month, day, and
day of year).

Fixes bug #897625.
Doc/lib/libtime.tex
Lib/test/test_strftime.py
Lib/test/test_time.py
Misc/NEWS
Modules/datetimemodule.c
Modules/timemodule.c