Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA.

This commit is contained in:
Guido van Rossum 2007-10-13 21:01:08 +00:00
parent c05d384bf7
commit d417a154e4

View file

@ -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;