summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorTravis E. Oliphant <oliphant@enthought.com>2008-06-06 20:52:38 (GMT)
committerTravis E. Oliphant <oliphant@enthought.com>2008-06-06 20:52:38 (GMT)
commit3900088cb6d70769c7905ea0afa8b6f161186fde (patch)
tree7cb5be0660b0801312b26202635b24f9e977cf73 /Objects/abstract.c
parentb2750b5d334e9c8d262009069bce41c15803eca0 (diff)
downloadcpython-3900088cb6d70769c7905ea0afa8b6f161186fde.zip
cpython-3900088cb6d70769c7905ea0afa8b6f161186fde.tar.gz
cpython-3900088cb6d70769c7905ea0afa8b6f161186fde.tar.bz2
Remove locking from buffer protocol as-per discussion.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 11adc77..60a5e84 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -672,12 +672,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,