From 93965f7a6bb1e762f7985c6fe247596a3a0e56df Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 23 Nov 2013 14:59:33 +0100 Subject: Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given a year before 1900. --- Modules/timemodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '%')) -- cgit v0.12