summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 55e26fa..197d2c0 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -623,12 +623,6 @@ time_strftime(PyObject *self, PyObject *args)
Py_DECREF(format);
return NULL;
}
- else if (outbuf[1] == '\0')
- {
- PyErr_SetString(PyExc_ValueError, "Incomplete format string");
- Py_DECREF(format);
- return NULL;
- }
}
#elif (defined(_AIX) || defined(sun)) && defined(HAVE_WCSFTIME)
for(outbuf = wcschr(fmt, '%');
@@ -642,12 +636,6 @@ time_strftime(PyObject *self, PyObject *args)
"format %y requires year >= 1900 on AIX");
return NULL;
}
- else if (outbuf[1] == '\0')
- {
- PyErr_SetString(PyExc_ValueError, "Incomplete format string");
- Py_DECREF(format);
- return NULL;
- }
}
#endif