summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.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/memoryobject.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/memoryobject.c')
-rw-r--r--Objects/memoryobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index 27ceb7a..9bb1697 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -230,9 +230,6 @@ PyMemoryView_GetContiguous(PyObject *obj, int buffertype, char fort)
case PyBUF_WRITE:
flags = PyBUF_FULL;
break;
- case PyBUF_SHADOW:
- flags = PyBUF_FULL_XLCK;
- break;
}
if (PyObject_GetBuffer(obj, view, flags) != 0) {