Fixing the spelling of "writeable" to "writable", particularly PyBUF_WRITEABLE.
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 77f64bc..cbea1c4 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -272,7 +272,7 @@
}
static int
-is_writeable(mmap_object *self)
+is_writable(mmap_object *self)
{
if (self->access != ACCESS_READ)
return 1;
@@ -307,7 +307,7 @@
if (!PyArg_ParseTuple(args, "s#:write", &data, &length))
return(NULL);
- if (!is_writeable(self))
+ if (!is_writable(self))
return NULL;
if ((self->pos + length) > self->size) {
@@ -330,7 +330,7 @@
if (!PyArg_ParseTuple(args, "c:write_byte", &value))
return(NULL);
- if (!is_writeable(self))
+ if (!is_writable(self))
return NULL;
*(self->data+self->pos) = value;
self->pos += 1;
@@ -562,7 +562,7 @@
unsigned long dest, src, count;
CHECK_VALID(NULL);
if (!PyArg_ParseTuple(args, "kkk:move", &dest, &src, &count) ||
- !is_writeable(self)) {
+ !is_writable(self)) {
return NULL;
} else {
/* bounds check the values */
@@ -733,7 +733,7 @@
"mmap assignment must be length-1 bytes()");
return -1;
}
- if (!is_writeable(self))
+ if (!is_writable(self))
return -1;
buf = PyBytes_AsString(v);
self->data[i] = buf[0];
@@ -768,7 +768,7 @@
"mmap assignment must be length-1 bytes()");
return -1;
}
- if (!is_writeable(self))
+ if (!is_writable(self))
return -1;
buf = PyBytes_AsString(value);
self->data[i] = buf[0];
@@ -797,7 +797,7 @@
"mmap slice assignment is wrong size");
return -1;
}
- if (!is_writeable(self))
+ if (!is_writable(self))
return -1;
if (slicelen == 0)
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 90a2f96..7fe562e 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1831,7 +1831,7 @@
timeout = 1;
} else if (res > 0) {
if (FD_ISSET(s->sock_fd, &fds))
- /* The socket is in the writeable set - this
+ /* The socket is in the writable set - this
means connected */
res = 0;
else {