mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue