summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorSean Reifscheider <jafo@tummy.com>2007-09-17 17:55:36 (GMT)
committerSean Reifscheider <jafo@tummy.com>2007-09-17 17:55:36 (GMT)
commit54cf12b625397ff52e30efd9b14f0b61edfdfd9d (patch)
tree98eb3de7701e05ae46d4fa16e4c357a162e8a9fc /Objects/abstract.c
parenta5b8e04bd572099095fbf6b32dadde637b6e6f7b (diff)
downloadcpython-54cf12b625397ff52e30efd9b14f0b61edfdfd9d.zip
cpython-54cf12b625397ff52e30efd9b14f0b61edfdfd9d.tar.gz
cpython-54cf12b625397ff52e30efd9b14f0b61edfdfd9d.tar.bz2
Fixing the spelling of "writeable" to "writable", particularly PyBUF_WRITEABLE.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index cdd3706..284eb33 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -304,9 +304,9 @@ int PyObject_AsWriteBuffer(PyObject *obj,
pb = obj->ob_type->tp_as_buffer;
if (pb == NULL ||
pb->bf_getbuffer == NULL ||
- ((*pb->bf_getbuffer)(obj, &view, PyBUF_WRITEABLE) != 0)) {
+ ((*pb->bf_getbuffer)(obj, &view, PyBUF_WRITABLE) != 0)) {
PyErr_SetString(PyExc_TypeError,
- "expected an object with a writeable buffer interface");
+ "expected an object with a writable buffer interface");
return -1;
}
@@ -659,10 +659,10 @@ PyBuffer_FillInfo(PyBuffer *view, void *buf, Py_ssize_t len,
"Cannot make this object read-only.");
return -1;
}
- if (((flags & PyBUF_WRITEABLE) == PyBUF_WRITEABLE) &&
+ if (((flags & PyBUF_WRITABLE) == PyBUF_WRITABLE) &&
readonly == 1) {
PyErr_SetString(PyExc_BufferError,
- "Object is not writeable.");
+ "Object is not writable.");
return -1;
}