summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-09-05 23:11:53 -0700
committerSteve Dower <steve.dower@microsoft.com>2015-09-05 23:11:53 -0700
commitdcaf4ccf3f1d8040313f68b77424d39691389164 (patch)
tree0cba38962aeb483dc8c2509a647caf18b12fd148 /Modules
parentfaa868aeacb5bfaab116e1de3e4fa906912067e9 (diff)
parentef920d6d5e38cebd51b17001d614b55b1c468041 (diff)
downloadcpython-git-dcaf4ccf3f1d8040313f68b77424d39691389164.tar.gz
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 55e26fa8a2..197d2c0b8d 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