mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA.
This commit is contained in:
parent
c05d384bf7
commit
d417a154e4
1 changed files with 1 additions and 1 deletions
|
@ -1789,7 +1789,7 @@ array_buffer_getbuf(arrayobject *self, Py_buffer *view, int flags)
|
|||
"Cannot be a character buffer");
|
||||
return -1;
|
||||
}
|
||||
if ((flags & PyBUF_LOCKDATA)) {
|
||||
if ((flags & PyBUF_LOCK)) {
|
||||
PyErr_SetString(PyExc_BufferError,
|
||||
"Cannot lock data");
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue