Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 47500:a0193b08f0eb
Remove locking from buffer protocol as-per discussion.
| author | Travis E. Oliphant <oliphant@enthought.com> |
|---|---|
| date | Fri, 06 Jun 2008 20:52:38 +0000 |
| parents | 23ab586c427a |
| children | 94f64f11fdd0 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Fri Jun 06 12:18:17 2008 +0000 +++ b/Modules/arraymodule.c Fri Jun 06 20:52:38 2008 +0000 @@ -1779,11 +1779,6 @@ 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;
