From d417a154e4fcae12fd17b160762eafe8eec6d3f5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 13 Oct 2007 21:01:08 +0000 Subject: Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA. --- Modules/arraymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index badc73b..051063b 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -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; -- cgit v0.12