summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-09-06 06:11:53 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-09-06 06:11:53 (GMT)
commitdcaf4ccf3f1d8040313f68b77424d39691389164 (patch)
tree0cba38962aeb483dc8c2509a647caf18b12fd148 /Modules
parentfaa868aeacb5bfaab116e1de3e4fa906912067e9 (diff)
parentef920d6d5e38cebd51b17001d614b55b1c468041 (diff)
downloadcpython-dcaf4ccf3f1d8040313f68b77424d39691389164.zip
cpython-dcaf4ccf3f1d8040313f68b77424d39691389164.tar.gz
cpython-dcaf4ccf3f1d8040313f68b77424d39691389164.tar.bz2
Issue #24917: Backed out changeset 09b62202d9b7
Diffstat (limited to 'Modules')
-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