Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efa965 commit 36b82d8Copy full SHA for 36b82d8
1 file changed
Modules/timemodule.c
@@ -588,7 +588,7 @@ time_strftime(PyObject *self, PyObject *args)
588
else if (!gettmarg(tup, &buf) || !checktm(&buf))
589
return NULL;
590
591
-#if defined(_MSC_VER) || defined(sun)
+#if defined(_MSC_VER) || defined(sun) || defined(_AIX)
592
if (buf.tm_year + 1900 < 1 || 9999 < buf.tm_year + 1900) {
593
PyErr_SetString(PyExc_ValueError,
594
"strftime() requires year in [1; 9999]");
0 commit comments