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

@ -685,12 +685,6 @@ PyBuffer_FillInfo(Py_buffer *view, void *buf, Py_ssize_t len,
int readonly, int flags)
{
if (view == NULL) return 0;
if (((flags & PyBUF_LOCK) == PyBUF_LOCK) &&
readonly != 0) {
PyErr_SetString(PyExc_BufferError,
"Cannot lock this object.");
return -1;
}
if (((flags & PyBUF_WRITABLE) == PyBUF_WRITABLE) &&
(readonly == 1)) {
PyErr_SetString(PyExc_BufferError,