summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-11-23 13:59:33 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-11-23 13:59:33 (GMT)
commit93965f7a6bb1e762f7985c6fe247596a3a0e56df (patch)
treec1cf6b4cf3dd41ab8c948a36bf4ebeeb55c6d83d
parent235c5e0dd6fe6408cf6058233602638ae3c9b8b2 (diff)
downloadcpython-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.c2
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, '%'))