diff options
author | Larry Hastings <larry@hastings.org> | 2015-09-06 07:31:02 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2015-09-06 07:31:02 (GMT) |
commit | 62b24624dd3eec75869372e08d5ecbc4b8976101 (patch) | |
tree | 9f7a1ee5ca6a413ef3448dc5f3a36e5e10b6f055 /Modules/timemodule.c | |
parent | 055a9e0bc8eb28fd64158ade11019b712116aeae (diff) | |
download | cpython-62b24624dd3eec75869372e08d5ecbc4b8976101.zip cpython-62b24624dd3eec75869372e08d5ecbc4b8976101.tar.gz cpython-62b24624dd3eec75869372e08d5ecbc4b8976101.tar.bz2 |
Backing out 09b62202d9b7; the tests fail on Linux, and it needs a re-think.
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 12 |
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 |