diff options
-rw-r--r-- | Modules/timemodule.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 86b73a5..c3b51ef 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -476,9 +476,8 @@ time_strftime(PyObject *self, PyObject *args) #if defined(_MSC_VER) || defined(sun) if (buf.tm_year + 1900 < 1 || 9999 < buf.tm_year + 1900) { - PyErr_Format(PyExc_ValueError, - "strftime() requires year in [1; 9999]", - buf.tm_year + 1900); + PyErr_SetString(PyExc_ValueError, + "strftime() requires year in [1; 9999]"); return NULL; } #endif |