diff options
author | Guido van Rossum <guido@python.org> | 2007-10-13 21:01:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-13 21:01:08 (GMT) |
commit | d417a154e4fcae12fd17b160762eafe8eec6d3f5 (patch) | |
tree | aa6a4fb417a8242f6d2d12d074b735726f520f9f /Modules/arraymodule.c | |
parent | c05d384bf71f3148ab06007ab17f9e8b1f0a6f84 (diff) | |
download | cpython-d417a154e4fcae12fd17b160762eafe8eec6d3f5.zip cpython-d417a154e4fcae12fd17b160762eafe8eec6d3f5.tar.gz cpython-d417a154e4fcae12fd17b160762eafe8eec6d3f5.tar.bz2 |
Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index badc73b..051063b 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1789,7 +1789,7 @@ array_buffer_getbuf(arrayobject *self, Py_buffer *view, int flags) "Cannot be a character buffer"); return -1; } - if ((flags & PyBUF_LOCKDATA)) { + if ((flags & PyBUF_LOCK)) { PyErr_SetString(PyExc_BufferError, "Cannot lock data"); return -1; |