mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Slightly improve buffer-related error message.
This commit is contained in:
parent
3eb562ba48
commit
61b96dc2fe
2 changed files with 2 additions and 2 deletions
|
@ -255,7 +255,7 @@ PyMemoryView_GetContiguous(PyObject *obj, int buffertype, char fort)
|
|||
|
||||
if (!PyObject_CheckBuffer(obj)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"object does not have the buffer interface");
|
||||
"object does not support the buffer interface");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue