Remove locking part of new buffer protocol.

This commit is contained in:
Travis E. Oliphant 2008-06-06 22:39:47 +00:00
parent 711c9e954e
commit 0144f27602
3 changed files with 0 additions and 22 deletions

View file

@ -2502,11 +2502,6 @@ static int CData_NewGetBuffer(PyObject *_self, Py_buffer *view, int flags)
Py_ssize_t i;
if (view == NULL) return 0;
if (((flags & PyBUF_LOCK) == PyBUF_LOCK)) {
PyErr_SetString(PyExc_BufferError,
"Cannot lock this object.");
return -1;
}
view->buf = self->b_ptr;
view->len = self->b_size;