diff Modules/arraymodule.c @ 43554:644e28ea9b22

Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA.
author Guido van Rossum <guido@python.org>
date Sat, 13 Oct 2007 21:01:08 +0000
parents fb9d5306f4c7
children 8e72dacf7f3a
line wrap: on
line diff
--- a/Modules/arraymodule.c	Sat Oct 13 18:56:00 2007 +0000
+++ b/Modules/arraymodule.c	Sat Oct 13 21:01:08 2007 +0000
@@ -1789,7 +1789,7 @@
                                 "Cannot be a character buffer");
                 return -1;
         }
-        if ((flags & PyBUF_LOCKDATA)) {
+        if ((flags & PyBUF_LOCK)) {
                 PyErr_SetString(PyExc_BufferError,
                                 "Cannot lock data");
                 return -1;