diff options
author | Travis E. Oliphant <oliphant@enthought.com> | 2008-06-06 22:39:47 (GMT) |
---|---|---|
committer | Travis E. Oliphant <oliphant@enthought.com> | 2008-06-06 22:39:47 (GMT) |
commit | 0144f27602944fb1ef6cb561333f65fef50e79cc (patch) | |
tree | 8eb33a4b3362488aaa0bdd010f6b3527e83328d8 /Objects/abstract.c | |
parent | 711c9e954e6b0ff0fa415fc98e375d974ba847ca (diff) | |
download | cpython-0144f27602944fb1ef6cb561333f65fef50e79cc.zip cpython-0144f27602944fb1ef6cb561333f65fef50e79cc.tar.gz cpython-0144f27602944fb1ef6cb561333f65fef50e79cc.tar.bz2 |
Remove locking part of new buffer protocol.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 3e6feb5..aa30129e 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -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, |