mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Remove locking part of new buffer protocol.
This commit is contained in:
parent
711c9e954e
commit
0144f27602
3 changed files with 0 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue