cpython: b7fd5d8e9968 (original) (raw)

Mercurial > cpython

changeset 87418:b7fd5d8e9968

Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given a year before 1900. [#19634]

Victor Stinner victor.stinner@gmail.com
date Sat, 23 Nov 2013 14:59:33 +0100
parents 271cc3660445
children 6a9e262c5423
files Modules/timemodule.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Modules/timemodule.c 2

line wrap: on

line diff

--- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -650,7 +650,7 @@ time_strftime(PyObject *self, PyObject * 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, '%'))