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 /Modules | |
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 'Modules')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 34ec9f2..18851fd 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -2502,11 +2502,6 @@ static int CData_NewGetBuffer(PyObject *_self, Py_buffer *view, int flags) Py_ssize_t i; if (view == NULL) return 0; - if (((flags & PyBUF_LOCK) == PyBUF_LOCK)) { - PyErr_SetString(PyExc_BufferError, - "Cannot lock this object."); - return -1; - } view->buf = self->b_ptr; view->len = self->b_size; |