mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
39bc38c39c
commit
0a5f65ab0a
2 changed files with 2 additions and 2 deletions
|
@ -331,7 +331,7 @@ PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags)
|
|||
{
|
||||
if (!PyObject_CheckBuffer(obj)) {
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"'%100s' does not support the buffer interface",
|
||||
"'%.100s' does not support the buffer interface",
|
||||
Py_TYPE(obj)->tp_name);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue