Issue #7330, #10833: Replace %100s by %.100s and %200s by %.200s

I suppose that the author would like to truncate the type name, not get a
string of 100/200 characters.
This commit is contained in:
Victor Stinner 2011-03-22 01:09:21 +01:00
parent 39bc38c39c
commit 0a5f65ab0a
2 changed files with 2 additions and 2 deletions

View file

@ -4130,7 +4130,7 @@ ext_do_call(PyObject *func, PyObject ***pp_stack, int flags, int na, int nk)
if (PyErr_ExceptionMatches(PyExc_TypeError)) {
PyErr_Format(PyExc_TypeError,
"%.200s%.200s argument after * "
"must be a sequence, not %200s",
"must be a sequence, not %.200s",
PyEval_GetFuncName(func),
PyEval_GetFuncDesc(func),
stararg->ob_type->tp_name);