@@ -272,7 +272,7 @@ mmap_find_method(mmap_object *self,
272272}
273273
274274static int
275- is_writeable (mmap_object * self )
275+ is_writable (mmap_object * self )
276276{
277277 if (self -> access != ACCESS_READ )
278278 return 1 ;
@@ -307,7 +307,7 @@ mmap_write_method(mmap_object *self,
307307 if (!PyArg_ParseTuple (args , "s#:write" , & data , & length ))
308308 return (NULL );
309309
310- if (!is_writeable (self ))
310+ if (!is_writable (self ))
311311 return NULL ;
312312
313313 if ((self -> pos + length ) > self -> size ) {
@@ -330,7 +330,7 @@ mmap_write_byte_method(mmap_object *self,
330330 if (!PyArg_ParseTuple (args , "c:write_byte" , & value ))
331331 return (NULL );
332332
333- if (!is_writeable (self ))
333+ if (!is_writable (self ))
334334 return NULL ;
335335 * (self -> data + self -> pos ) = value ;
336336 self -> pos += 1 ;
@@ -562,7 +562,7 @@ mmap_move_method(mmap_object *self, PyObject *args)
562562 unsigned long dest , src , count ;
563563 CHECK_VALID (NULL );
564564 if (!PyArg_ParseTuple (args , "kkk:move" , & dest , & src , & count ) ||
565- !is_writeable (self )) {
565+ !is_writable (self )) {
566566 return NULL ;
567567 } else {
568568 /* bounds check the values */
@@ -733,7 +733,7 @@ mmap_ass_item(mmap_object *self, Py_ssize_t i, PyObject *v)
733733 "mmap assignment must be length-1 bytes()" );
734734 return -1 ;
735735 }
736- if (!is_writeable (self ))
736+ if (!is_writable (self ))
737737 return -1 ;
738738 buf = PyBytes_AsString (v );
739739 self -> data [i ] = buf [0 ];
@@ -768,7 +768,7 @@ mmap_ass_subscript(mmap_object *self, PyObject *item, PyObject *value)
768768 "mmap assignment must be length-1 bytes()" );
769769 return -1 ;
770770 }
771- if (!is_writeable (self ))
771+ if (!is_writable (self ))
772772 return -1 ;
773773 buf = PyBytes_AsString (value );
774774 self -> data [i ] = buf [0 ];
@@ -797,7 +797,7 @@ mmap_ass_subscript(mmap_object *self, PyObject *item, PyObject *value)
797797 "mmap slice assignment is wrong size" );
798798 return -1 ;
799799 }
800- if (!is_writeable (self ))
800+ if (!is_writable (self ))
801801 return -1 ;
802802
803803 if (slicelen == 0 )
0 commit comments