diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-23 13:59:33 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-23 13:59:33 (GMT) |
commit | 93965f7a6bb1e762f7985c6fe247596a3a0e56df (patch) | |
tree | c1cf6b4cf3dd41ab8c948a36bf4ebeeb55c6d83d | |
parent | 235c5e0dd6fe6408cf6058233602638ae3c9b8b2 (diff) | |
download | cpython-93965f7a6bb1e762f7985c6fe247596a3a0e56df.zip cpython-93965f7a6bb1e762f7985c6fe247596a3a0e56df.tar.gz cpython-93965f7a6bb1e762f7985c6fe247596a3a0e56df.tar.bz2 |
Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given
a year before 1900.
-rw-r--r-- | Modules/timemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index ca39906..d3878b9 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -650,7 +650,7 @@ time_strftime(PyObject *self, PyObject *args) return NULL; } } -#elif defined(_AIX) && defined(HAVE_WCSFTIME) +#elif (defined(_AIX) || defined(sun)) && defined(HAVE_WCSFTIME) for(outbuf = wcschr(fmt, '%'); outbuf != NULL; outbuf = wcschr(outbuf+2, '%')) |