[Python-3000-checkins] r58447 - python/branches/py3k/Modules/arraymodule.c

guido.van.rossum python-3000-checkins at python.org
Sat Oct 13 23:01:08 CEST 2007


Author: guido.van.rossum
Date: Sat Oct 13 23:01:08 2007
New Revision: 58447

Modified:
   python/branches/py3k/Modules/arraymodule.c
Log:
Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA.


Modified: python/branches/py3k/Modules/arraymodule.c
==============================================================================
--- python/branches/py3k/Modules/arraymodule.c	(original)
+++ python/branches/py3k/Modules/arraymodule.c	Sat Oct 13 23:01:08 2007
@@ -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;


More information about the Python-3000-checkins mailing list