Skip to content

Commit 811fe56

Browse files
author
guido.van.rossum
committed
Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA.
git-svn-id: http://svn.python.org/projects/python/branches/py3k@58447 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent da17db1 commit 811fe56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/arraymodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ array_buffer_getbuf(arrayobject *self, Py_buffer *view, int flags)
17891789
"Cannot be a character buffer");
17901790
return -1;
17911791
}
1792-
if ((flags & PyBUF_LOCKDATA)) {
1792+
if ((flags & PyBUF_LOCK)) {
17931793
PyErr_SetString(PyExc_BufferError,
17941794
"Cannot lock data");
17951795
return -1;

0 commit comments

Comments
 (0)