mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merge from 3.1
This commit is contained in:
commit
ae664fb528
2 changed files with 9 additions and 1 deletions
|
@ -512,7 +512,7 @@ time_strftime(PyObject *self, PyObject *args)
|
|||
if (outbuf[1]=='#')
|
||||
++outbuf; /* not documented by python, */
|
||||
if (outbuf[1]=='\0' ||
|
||||
!wcschr(L"aAbBcdfHIjmMpSUwWxXyYzZ%", outbuf[1]))
|
||||
!wcschr(L"aAbBcdHIjmMpSUwWxXyYzZ%", outbuf[1]))
|
||||
{
|
||||
PyErr_SetString(PyExc_ValueError, "Invalid format string");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue