]> granicus.if.org Git - python/commit
similar to SF bug 847019: a quick check in the time() constructor, which
authorArmin Rigo <arigo@tunes.org>
Mon, 7 Nov 2005 07:15:48 +0000 (07:15 +0000)
committerArmin Rigo <arigo@tunes.org>
Mon, 7 Nov 2005 07:15:48 +0000 (07:15 +0000)
commitf4afb215262eabfbad00eeb7997b7e9522911eb3
treea2d63ced0873743bbf5f1e634cd8eeb808e9dc7e
parent9a2dcf8ac1ef89d03c2978e7b1ef4b36cc2fa9f8
similar to SF bug 847019: a quick check in the time() constructor, which
accepts strings only for unpickling reasons.  This check prevents the honest
mistake of passing a string like '2:59.0' to time() and getting an insane
object.
Lib/test/test_datetime.py
Modules/datetimemodule.c