diff options
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index de1588f..314d8c3 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -332,7 +332,7 @@ gettmarg(PyObject *args, struct tm *p) if (y < 1000) { PyObject *accept = PyDict_GetItemString(moddict, "accept2dyear"); - if (accept != NULL) { + if (accept != NULL) { int acceptval = PyObject_IsTrue(accept); if (acceptval == -1) return 0; @@ -481,13 +481,6 @@ time_strftime(PyObject *self, PyObject *args) buf.tm_year + 1900); return NULL; } -#else - if (buf.tm_year + 1900 < 1) { - PyErr_Format(PyExc_ValueError, - "strftime() requires year >= 1", - buf.tm_year + 1900); - return NULL; - } #endif /* Normalize tm_isdst just in case someone foolishly implements %Z |