summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTravis E. Oliphant <oliphant@enthought.com>2008-06-06 22:39:47 (GMT)
committerTravis E. Oliphant <oliphant@enthought.com>2008-06-06 22:39:47 (GMT)
commit0144f27602944fb1ef6cb561333f65fef50e79cc (patch)
tree8eb33a4b3362488aaa0bdd010f6b3527e83328d8 /Objects
parent711c9e954e6b0ff0fa415fc98e375d974ba847ca (diff)
downloadcpython-0144f27602944fb1ef6cb561333f65fef50e79cc.zip
cpython-0144f27602944fb1ef6cb561333f65fef50e79cc.tar.gz
cpython-0144f27602944fb1ef6cb561333f65fef50e79cc.tar.bz2
Remove locking part of new buffer protocol.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c6
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,