summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-21 01:15:18 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-21 01:15:18 (GMT)
commit161fbeae72872c3a65408da6560501bcc99cdbdb (patch)
treef4cd4998f78a28fe28b4c3a96e9cfc51762b4afb /Modules
parentee525de6a947c05e8deb44c0675a2bb3e5130497 (diff)
parent6f0e4f99ab2f14864557e7f8dda1d575dd0e1f6c (diff)
downloadcpython-161fbeae72872c3a65408da6560501bcc99cdbdb.zip
cpython-161fbeae72872c3a65408da6560501bcc99cdbdb.tar.gz
cpython-161fbeae72872c3a65408da6560501bcc99cdbdb.tar.bz2
merge 3.2
Diffstat (limited to 'Modules')
-rw-r--r--Modules/timemodule.c5
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