]> granicus.if.org Git - python/commit
Change time.strptime() to raise ValueError whenever there is an error in the
authorBrett Cannon <bcannon@gmail.com>
Wed, 2 Nov 2005 23:04:26 +0000 (23:04 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 2 Nov 2005 23:04:26 +0000 (23:04 +0000)
commit5d0bf9446b1684b8d2832600ceb49d8c5c4b812d
tree41a415bc4f611d69f99432d3ab1afa1323c6a1e4
parent076b7325a88f7f779fd4f900a1b8d0214c7e062d
Change time.strptime() to raise ValueError whenever there is an error in the
format string.  Before exceptions generated by the internal code propagated up
to the user and were not helpful.

Closes bug #1340337.
Lib/_strptime.py
Lib/test/test_strptime.py
Misc/NEWS