summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index a84126d..ea59a42 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -1779,11 +1779,6 @@ static const void *emptybuf = "";
static int
array_buffer_getbuf(arrayobject *self, Py_buffer *view, int flags)
{
- if ((flags & PyBUF_LOCK)) {
- PyErr_SetString(PyExc_BufferError,
- "Cannot lock data");
- return -1;
- }
if (view==NULL) goto finish;
view->buf = (void *)self->ob_item;