]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA.
authorGuido van Rossum <guido@python.org>
Sat, 13 Oct 2007 21:01:08 +0000 (21:01 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 13 Oct 2007 21:01:08 +0000 (21:01 +0000)
Modules/arraymodule.c

index badc73b6ff15aceb8260ada87ea29f4ca672a55e..051063b86c39e3a02f2997cb8973bffdae64584c 100644 (file)
@@ -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;