diff options
author | Travis E. Oliphant <oliphant@enthought.com> | 2008-06-06 20:52:38 (GMT) |
---|---|---|
committer | Travis E. Oliphant <oliphant@enthought.com> | 2008-06-06 20:52:38 (GMT) |
commit | 3900088cb6d70769c7905ea0afa8b6f161186fde (patch) | |
tree | 7cb5be0660b0801312b26202635b24f9e977cf73 /Modules/arraymodule.c | |
parent | b2750b5d334e9c8d262009069bce41c15803eca0 (diff) | |
download | cpython-3900088cb6d70769c7905ea0afa8b6f161186fde.zip cpython-3900088cb6d70769c7905ea0afa8b6f161186fde.tar.gz cpython-3900088cb6d70769c7905ea0afa8b6f161186fde.tar.bz2 |
Remove locking from buffer protocol as-per discussion.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 5 |
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; |