mirror of https://github.com/python/cpython
Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given
a year before 1900.
This commit is contained in:
parent
235c5e0dd6
commit
93965f7a6b
|
@ -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, '%'))
|
||||
|
|
Loading…
Reference in New Issue